Skip to content

Commit cd4292f

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

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

.github/workflows/secret-scanner.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ jobs:
1313
scan:
1414
permissions:
1515
contents: read
16+
pull-requests: write
17+
actions: read
1618
uses: hyperpolymath/standards/.github/workflows/secret-scanner-reusable.yml@db12a6ad3ef9076d5f7bdcf98d7d15cf8547555a
1719
secrets: inherit
1820
trufflehog:
@@ -24,4 +26,4 @@ jobs:
2426
- name: TruffleHog Secret Scan
2527
uses: trufflesecurity/trufflehog@00155c9dc586f34d189adc83d3ac2698c2ec551f # v3.95.8
2628
with:
27-
extra_args: --only-verified --fail
29+
extra_args: --only-verified --fail

0 commit comments

Comments
 (0)