Commit 92bf3ad
fix(ci): grant the secret-scanner reusable its required job permissions (#25)
Supersedes #24 (that branch's commit was unsigned and blocked by the
required-signatures rule).
Every `Secret Scanner` run in this repo ended in **`startup_failure`** —
secret scanning never actually executed.
**Root cause:** a called reusable workflow may only request permissions
equal to or more restrictive than its caller, enforced at parse time.
`secret-scanner-reusable.yml`'s `gitleaks` job declares `pull-requests:
write` + `actions: read`; this caller granted only `contents: read`, so
the run was refused before a runner was allocated.
**Fix:** grant the superset at job level, byte-identical to the
canonical template. No SHA pin changed.
**Verified:** on the equivalent branch, Secret Scanner went
`startup_failure` → `success` with `gitleaks`, `rust-secrets`,
`shell-secrets` all passing.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Signed-off-by: Jonathan D.A. Jewell <6759885+hyperpolymath@users.noreply.github.com>
Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>1 parent 38991c3 commit 92bf3ad
1 file changed
Lines changed: 7 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
18 | 25 | | |
19 | 26 | | |
0 commit comments