Skip to content

Commit b6ef087

Browse files
hyperpolymathclaude
andcommitted
fix(ci): grant the secret-scanner reusable its required job permissions
The scan job calls secret-scanner-reusable.yml, whose gitleaks job declares pull-requests: write (PR summary comment) and actions: read (workflow-run metadata) at job level. A called reusable workflow may only request permissions equal to or more restrictive than its caller, and this caller granted only the file-level contents: read — so GitHub refused the run at parse time. Every Secret Scanner run ended in startup_failure, meaning secret scanning has never actually executed in this repo. Grants the superset at job level, matching the canonical template and the 176 estate repos whose scanner already runs. No SHA pin is changed. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
1 parent e60666c commit b6ef087

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

.github/workflows/secret-scanner.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,13 @@ permissions:
1111
contents: read
1212
jobs:
1313
scan:
14+
# The reusable's gitleaks job requests pull-requests: write (PR summary
15+
# comment) and actions: read (workflow-run metadata) at job level; the
16+
# caller must grant at least that or the run startup-fails.
17+
permissions:
18+
contents: read
19+
pull-requests: write
20+
actions: read
1421
uses: hyperpolymath/standards/.github/workflows/secret-scanner-reusable.yml@d135b05bfc647d0c0fbfedc7e80f37ea50f49236
1522
secrets: inherit
1623
trufflehog:

0 commit comments

Comments
 (0)