Skip to content

Commit 57d342d

Browse files
committed
ci: grant Secret Scanner caller the reusable's job permissions
The standards secret-scanner reusable's gitleaks job declares pull-requests:write + actions:read (PR summary comment via the Issues/PR API). A called workflow is capped at the caller's grant, so without these at the calling job the run dies at startup (0s startup_failure, estate-wide). Caller-side fix; bumping the pin never fixes it. Ref: hyperpolymath/standards#472.
1 parent 532babf commit 57d342d

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@09e7023d24682621bea4e11965a1ef5e87d86c3b
1519
timeout-minutes: 10
1620
secrets: inherit
@@ -24,4 +28,4 @@ jobs:
2428
- name: TruffleHog Secret Scan
2529
uses: trufflesecurity/trufflehog@00155c9dc586f34d189adc83d3ac2698c2ec551f # v3.95.8
2630
with:
27-
extra_args: --only-verified --fail
31+
extra_args: --only-verified --fail

0 commit comments

Comments
 (0)