Skip to content

Commit 728b52e

Browse files
ci: Secret Scanner caller must grant the reusable's job permissions (#45)
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 7fccdbc commit 728b52e

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
@@ -12,6 +12,10 @@ permissions:
1212
contents: read
1313
jobs:
1414
scan:
15+
permissions:
16+
contents: read
17+
pull-requests: write
18+
actions: read
1519
uses: hyperpolymath/standards/.github/workflows/secret-scanner-reusable.yml@d135b05bfc647d0c0fbfedc7e80f37ea50f49236
1620
timeout-minutes: 10
1721
secrets: inherit
@@ -24,4 +28,4 @@ jobs:
2428
- name: TruffleHog Secret Scan
2529
uses: trufflesecurity/trufflehog@main
2630
with:
27-
extra_args: --only-verified --fail
31+
extra_args: --only-verified --fail

0 commit comments

Comments
 (0)