Skip to content

Commit 0d1c43f

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 52f7583 commit 0d1c43f

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

.github/workflows/secret-scanner.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,9 @@ permissions:
1515

1616
jobs:
1717
scan:
18+
permissions:
19+
contents: read
20+
pull-requests: write
21+
actions: read
1822
uses: hyperpolymath/standards/.github/workflows/secret-scanner-reusable.yml@db12a6ad3ef9076d5f7bdcf98d7d15cf8547555a
1923
secrets: inherit

0 commit comments

Comments
 (0)