Skip to content

Commit 7706b09

Browse files
fix(ci): grant secret-scanner caller the permissions its reusable requests (#63)
Secret Scanner was the last `startup_failure` on main: the gitleaks job in `secret-scanner-reusable` requests `pull-requests: write` + `actions: read`, and a called reusable workflow cannot escalate past the caller's grant. Same mechanism as the scorecard fix in #61 — this caller was missed because it wasn't among the sampled failing runs. One-line permissions grant. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
1 parent ece8fa9 commit 7706b09

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

.github/workflows/secret-scanner.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,13 @@ on:
88
concurrency:
99
group: ${{ github.workflow }}-${{ github.ref }}
1010
cancel-in-progress: true
11+
# The called reusable's gitleaks job requests pull-requests:write +
12+
# actions:read (PR summary comments); a called workflow cannot escalate
13+
# past the caller's grant, so they must be granted here.
1114
permissions:
1215
contents: read
16+
pull-requests: write
17+
actions: read
1318
jobs:
1419
scan:
1520
uses: hyperpolymath/standards/.github/workflows/secret-scanner-reusable.yml@a44c93a5cd3d293ee3e8b488444dcdc19c4e5d49

0 commit comments

Comments
 (0)