Skip to content

Commit c9bf29c

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 8e2f215 commit c9bf29c

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
@@ -17,6 +17,10 @@ permissions:
1717
# .github/workflows/README.adoc.
1818
jobs:
1919
scan:
20+
permissions:
21+
contents: read
22+
pull-requests: write
23+
actions: read
2024
uses: hyperpolymath/standards/.github/workflows/secret-scanner-reusable.yml@09e7023d24682621bea4e11965a1ef5e87d86c3b
2125
timeout-minutes: 10
22-
secrets: inherit
26+
secrets: inherit

0 commit comments

Comments
 (0)