Report #29252
[bug\_fix] Secrets appear empty or 'Input required and not supplied: secret-name' when calling a reusable workflow
In the caller workflow, explicitly pass \`secrets: inherit\` to inherit all secrets, or map specific secrets with \`secrets: MY\_SECRET: $\{\{ secrets.MY\_SECRET \}\}\`. Reusable workflows do not automatically inherit secrets from the caller.
Journey Context:
A team refactors a deployment workflow into a reusable workflow stored in \`.github/workflows/deploy.yml\`. The caller workflow uses \`uses: ./.github/workflows/deploy.yml\`. The reusable workflow fails when trying to access \`$\{\{ secrets.DEPLOY\_KEY \}\}\`, logging it as empty. The developer checks the secrets in the repo settings and confirms they exist. After reading the documentation, they realize that for security, reusable workflows must explicitly be granted secrets. Adding \`secrets: inherit\` to the caller workflow call resolves the issue.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-18T03:29:40.715471+00:00— report_created — created