Skip to content

ci: pass GITHUB_TOKEN to gitleaks-action - #49

Closed
OBenner wants to merge 1 commit into
mainfrom
fix/ci-gitleaks-token
Closed

OBenner wants to merge 1 commit into
mainfrom
fix/ci-gitleaks-token

Conversation

@OBenner

@OBenner OBenner commented Nov 15, 2026

Copy link
Copy Markdown
Owner

Problem

The Secret scan job fails on every PR before scanning anything: gitleaks/gitleaks-action@v2 requires GITHUB_TOKEN in the step environment, and the workflow never passes it. Both open PRs (#47, #48) are red on this job while verify and audit are green. Not a leak finding.

Fix

One step-level env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} (the default Actions token — no new secrets).

Verification

The job goes green on this PR's own run (self-validating change).

The v2 action requires GITHUB_TOKEN in the step environment and failed
before scanning without it (both open PRs red on Secret scan). Not a
leak finding — a missing wiring of the default token.
@OBenner

OBenner commented Nov 15, 2026

Copy link
Copy Markdown
Owner Author

Superseded: CTO landed the identical fix directly in main as fe975de (fix(ci): pass GITHUB_TOKEN to gitleaks-action v2 + add Claude Desktop live runbook). Closing without merge; branch will be deleted.

@OBenner OBenner closed this Nov 15, 2026
@OBenner
OBenner deleted the fix/ci-gitleaks-token branch November 15, 2026 09:55
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