Skip to content

Commit 0d2912a

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 9e7ae73 commit 0d2912a

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
@@ -15,5 +15,13 @@ permissions:
1515

1616
jobs:
1717
scan:
18+
# The reusable's gitleaks job requests pull-requests: write (PR
19+
# summary comments) and actions: read. A called workflow cannot
20+
# exceed the caller's grant - without these, every run dies at
21+
# startup_failure. See standards#472.
22+
permissions:
23+
contents: read
24+
pull-requests: write
25+
actions: read
1826
uses: hyperpolymath/standards/.github/workflows/secret-scanner-reusable.yml@d135b05bfc647d0c0fbfedc7e80f37ea50f49236
19-
secrets: inherit
27+
secrets: inherit

0 commit comments

Comments
 (0)