Skip to content

Commit ff60b09

Browse files
ci: Secret Scanner caller must grant the reusable's job permissions (#77)
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 d54d6db commit ff60b09

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
@@ -11,6 +11,10 @@ permissions:
1111
contents: read
1212
jobs:
1313
scan:
14+
permissions:
15+
contents: read
16+
pull-requests: write
17+
actions: read
1418
uses: hyperpolymath/standards/.github/workflows/secret-scanner-reusable.yml@d135b05bfc647d0c0fbfedc7e80f37ea50f49236
1519
timeout-minutes: 10
1620
secrets: inherit
@@ -23,4 +27,4 @@ jobs:
2327
- name: TruffleHog Secret Scan
2428
uses: trufflesecurity/trufflehog@main
2529
with:
26-
extra_args: --only-verified --fail
30+
extra_args: --only-verified --fail

0 commit comments

Comments
 (0)