Summary
The Weekly Compliance Audit workflow in .github is failing because the GH_TOKEN environment variable is empty when the shell script executes, despite being set in the workflow YAML.
Evidence
- Failed runs: 24014305873, 24014255856
- The
gh CLI calls within the script fail due to missing authentication
Recommended Actions
- Ensure
GH_TOKEN or GITHUB_TOKEN is passed as an env var to the script step (not just the job level)
- Verify the token has sufficient scope (
repo, read:org) for cross-repo scanning
- Consider using
ORG_SCORECARD_TOKEN (PAT) if GITHUB_TOKEN lacks org-level access
- Add a preflight check in the script:
gh auth status before proceeding
Context
Identified during weekly org CI/Security survey on 2026-04-05.
Summary
The Weekly Compliance Audit workflow in
.githubis failing because theGH_TOKENenvironment variable is empty when the shell script executes, despite being set in the workflow YAML.Evidence
ghCLI calls within the script fail due to missing authenticationRecommended Actions
GH_TOKENorGITHUB_TOKENis passed as an env var to the script step (not just the job level)repo,read:org) for cross-repo scanningORG_SCORECARD_TOKEN(PAT) ifGITHUB_TOKENlacks org-level accessgh auth statusbefore proceedingContext
Identified during weekly org CI/Security survey on 2026-04-05.