Skip to content

Commit 733aec4

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 5d78093 commit 733aec4

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
@@ -13,6 +13,10 @@ permissions:
1313
contents: read
1414
jobs:
1515
scan:
16+
permissions:
17+
contents: read
18+
pull-requests: write
19+
actions: read
1620
uses: hyperpolymath/standards/.github/workflows/secret-scanner-reusable.yml@d135b05bfc647d0c0fbfedc7e80f37ea50f49236
1721
timeout-minutes: 10
1822
secrets: inherit
@@ -25,4 +29,4 @@ jobs:
2529
- name: TruffleHog Secret Scan
2630
uses: trufflesecurity/trufflehog@d411fff7b8879a62509f3fa98c07f247ac089a51 # v3.95.5
2731
with:
28-
extra_args: --only-verified --fail
32+
extra_args: --only-verified --fail

0 commit comments

Comments
 (0)