Skip to content

fix: Weekly Compliance Audit workflow broken — GH_TOKEN not passed to script #30

@don-petry

Description

@don-petry

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

  1. Ensure GH_TOKEN or GITHUB_TOKEN is passed as an env var to the script step (not just the job level)
  2. Verify the token has sufficient scope (repo, read:org) for cross-repo scanning
  3. Consider using ORG_SCORECARD_TOKEN (PAT) if GITHUB_TOKEN lacks org-level access
  4. Add a preflight check in the script: gh auth status before proceeding

Context

Identified during weekly org CI/Security survey on 2026-04-05.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugBug reportsciCI/CD pipeline issuesclaudeFor Claude agent pickup

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions