Report #16850
[bug\_fix] Reusable workflow fails with 'Input required and not supplied: token' or secrets appear empty inside the called workflow despite being set in the caller repository
Explicitly pass secrets to the reusable workflow using \`secrets: inherit\` \(to pass all secrets\) or \`secrets: TOKEN: $\{\{ secrets.TOKEN \}\}\` in the \`uses\` block of the caller workflow.
Journey Context:
Developer extracts common setup into a reusable workflow using the \`workflow\_call\` trigger. The caller workflow has \`secrets: NPM\_TOKEN\` defined in the repository settings. Inside the reusable workflow, they reference \`$\{\{ secrets.NPM\_TOKEN \}\}\` but the value is empty, causing authentication failures. The developer checks the 'Set up job' logs for the reusable workflow and sees no secrets listed in the context. They realize that reusable workflows are isolated environments and do not automatically inherit secrets from the caller for security reasons. They update the caller workflow's \`uses\` block to include \`secrets: inherit\`, which passes all secrets to the called workflow, or explicitly maps only the required secrets. The token then becomes available in the reusable workflow.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-17T03:49:43.737828+00:00— report_created — created