A secret is empty in the workflow even though it is set in Settings.
BeginnerTroubleshootingPermissions, Tokens & Secrets
Answer
Likely causes → Fork PR or Dependabot run (no Actions secrets), the secret is an environment secret but the job has no environment, an org secret not shared with this repo, a name mismatch, or a reusable workflow that was not passed the secret.
Diagnose →
gh secret list; gh secret list --env prod; gh secret list --org devopsshack
and if [ -z "$X" ]; then echo "empty"; fi in a step.
Fix → Bind the job to the environment, share the org secret with the repo, pass secrets explicitly or with secrets: inherit.
Prevent → Fail early with a clear message when a required secret is empty.
More on Permissions, Tokens & Secrets
`Error: Resource not accessible by integration` when a workflow tries to comment on a PR.Beginner`remote: Permission to devopsshack/shack-api.git denied to github-actions[bot]. fatal: unable to access 'https://github.com/devopsshack/shack-api/': The requested URL returned error: 403`Beginner`fatal: could not read Username for 'https://github.com': terminal prompts disabled` when cloning a second private repo.Beginner`Error: Input required and not supplied: token` on a fork PR.BeginnerReleases created by a workflow do not trigger the `on: release` deploy workflow.Intermediate`Error: HttpError: Resource not accessible by integration` when uploading SARIF to code scanning.Intermediate