Skip to content

Commit c1e4afb

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 a8f7a6f commit c1e4afb

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
@@ -16,5 +16,9 @@ permissions:
1616
jobs:
1717
scan:
1818
timeout-minutes: 15
19+
permissions:
20+
contents: read
21+
pull-requests: write
22+
actions: read
1923
uses: hyperpolymath/standards/.github/workflows/secret-scanner-reusable.yml@d135b05bfc647d0c0fbfedc7e80f37ea50f49236
20-
secrets: inherit
24+
secrets: inherit

0 commit comments

Comments
 (0)