Skip to content

Commit cc1ea9c

Browse files
fix(ci): grant callers the permissions their reusable workflows declare (#33)
GitHub refuses these runs at workflow-creation time: `Error calling workflow ... The workflow is requesting '<perm>', but is only allowed '<none>'.` A `workflow_call` job must grant a superset of the callee's declared permissions. This adds the canonical grant (`actions: read`, `contents: read`, `security-events: write`) that the healthy repos already carry.
1 parent 751747b commit cc1ea9c

2 files changed

Lines changed: 8 additions & 0 deletions

File tree

‎.github/workflows/governance.yml‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,3 +35,7 @@ permissions:
3535
jobs:
3636
governance:
3737
uses: hyperpolymath/standards/.github/workflows/governance-reusable.yml@84355587cb2a1f86e6882de83514a32db2646e7a
38+
permissions:
39+
actions: read
40+
contents: read
41+
security-events: write

‎.github/workflows/secret-scanner.yml‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,3 +21,7 @@ jobs:
2121
secret-scan:
2222
uses: hyperpolymath/standards/.github/workflows/secret-scanner-reusable.yml@bd0df9ead7faf0cdfe0e13e7966d91e28d0101d4
2323
secrets: inherit
24+
permissions:
25+
actions: read
26+
contents: read
27+
security-events: write

0 commit comments

Comments
 (0)