Skip to content

harden(zizmor): add GH_TOKEN env to fix impostor-check rate-limits - #11

Merged
marcohost33-maker merged 1 commit into
mainfrom
harden/zizmor-gh-token
May 23, 2026
Merged

marcohost33-maker merged 1 commit into
mainfrom
harden/zizmor-gh-token

Conversation

@marcohost33-maker

Copy link
Copy Markdown
Owner

Summary

Adds GH_TOKEN: \${{ secrets.GITHUB_TOKEN }} to the Run zizmor step so zizmor's impostor-commit and ref-confusion audits get authenticated GitHub REST API access (1000 req/h vs. 60 req/h unauthenticated).

Problem

zizmor runs were emitting:

WARN audit{input=Workflow(...)}: zizmor::audit::impostor_commit: fast path impostor check failed for <sha>: request error while accessing GitHub API

This silently skips the SHA-pin validation we use zizmor for. With ~6 actions per workflow x 3 workflows + pagination, the impostor-commit audit easily exceeds the 60 req/h unauthenticated rate limit.

Solution

Per zizmor docs + zizmorcore/zizmor#764, the GH_TOKEN / GITHUB_TOKEN / ZIZMOR_GITHUB_TOKEN env vars are accepted by zizmorcore/zizmor-action. The default workflow GITHUB_TOKEN is sufficient (read-only API access).

Test plan

  • CI run on this PR: zizmor logs should no longer emit "fast path impostor check failed" warnings.
  • All previously SHA-pinned actions get validated.

Cross-repo

This pattern will be rolled out to Q-Forge, scanner-pwa, Lumos, USK (all 4 also have zizmor.yml). dePlani + aza-backend + MRT do not currently have zizmor.yml (separate hardening pass).

🤖 Generated with Claude Code

Provides authenticated GitHub API access for zizmor's impostor-commit
audit. Without this, the audit hits unauthenticated REST rate limits
(60/h) and emits 'fast path impostor check failed: request error while
accessing GitHub API' warnings, skipping security validation of SHA-
pinned action references.

zizmor accepts GH_TOKEN, GITHUB_TOKEN, or ZIZMOR_GITHUB_TOKEN env vars
per docs.zizmor.sh + zizmorcore/zizmor#764. The default workflow
GITHUB_TOKEN has sufficient permissions (read-only API queries) so no
additional secrets are needed.

Impact: zizmor impostor-commit + ref-confusion audits will now have
authenticated rate limits (1000/h), enabling reliable SHA-pin validation.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@marcohost33-maker
marcohost33-maker merged commit 86a9d56 into main May 23, 2026
5 checks passed
@marcohost33-maker
marcohost33-maker deleted the harden/zizmor-gh-token branch May 23, 2026 11:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant