Skip to content

Commit 302f2a4

Browse files
ci: Secret Scanner caller must grant the reusable's job permissions (#181)
Adds `pull-requests: write` + `actions: read` to the `scan` job so the standards secret-scanner reusable's gitleaks job can start. A called workflow cannot exceed the caller's grant; without this the run dies at startup (`startup_failure`, 0s) — the estate-wide Secret Scanner red. Mechanical caller-side fix, mirrors hyperpolymath/standards#472. No behaviour change beyond letting the scan run. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
1 parent 5d78093 commit 302f2a4

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

.github/workflows/secret-scanner.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,10 @@ permissions:
1313
contents: read
1414
jobs:
1515
scan:
16+
permissions:
17+
contents: read
18+
pull-requests: write
19+
actions: read
1620
uses: hyperpolymath/standards/.github/workflows/secret-scanner-reusable.yml@d135b05bfc647d0c0fbfedc7e80f37ea50f49236
1721
timeout-minutes: 10
1822
secrets: inherit
@@ -25,4 +29,4 @@ jobs:
2529
- name: TruffleHog Secret Scan
2630
uses: trufflesecurity/trufflehog@d411fff7b8879a62509f3fa98c07f247ac089a51 # v3.95.5
2731
with:
28-
extra_args: --only-verified --fail
32+
extra_args: --only-verified --fail

0 commit comments

Comments
 (0)