Skip to content

Commit 0e7b469

Browse files
hyperpolymathclaude
andcommitted
fix(ci): grant secret-scanner reusable its requested job permissions
The reusable's gitleaks job requests pull-requests: write + actions: read; a called workflow cannot exceed the caller's grant, so wrappers granting only contents: read die at startup_failure on every run. Estate sweep; root cause fixed in standards#472. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
1 parent df32340 commit 0e7b469

1 file changed

Lines changed: 9 additions & 1 deletion

File tree

.github/workflows/secret-scanner.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,14 @@ permissions:
1111
contents: read
1212
jobs:
1313
scan:
14+
# The reusable's gitleaks job requests pull-requests: write (PR
15+
# summary comments) and actions: read. A called workflow cannot
16+
# exceed the caller's grant - without these, every run dies at
17+
# startup_failure. See standards#472.
18+
permissions:
19+
contents: read
20+
pull-requests: write
21+
actions: read
1422
uses: hyperpolymath/standards/.github/workflows/secret-scanner-reusable.yml@3e4bd4c93911750727e2e4c66dff859e00079da0
1523
timeout-minutes: 10
1624
secrets: inherit
@@ -23,4 +31,4 @@ jobs:
2331
- name: TruffleHog Secret Scan
2432
uses: trufflesecurity/trufflehog@main
2533
with:
26-
extra_args: --only-verified --fail
34+
extra_args: --only-verified --fail

0 commit comments

Comments
 (0)