Skip to content

Commit 0df22f2

Browse files
auto-release: pass actions:read to called publish workflow (#175)
Caller permissions cap what the reusable workflow can request. The called publish.yml's approval job needs actions:read to read the deployment-approvals API; without it GitHub rejects the call at startup: The nested job 'approval' is requesting 'actions: read', but is only allowed 'actions: none'. This was intended in PR #172 but the line didn't make it onto main. Hotfix: add it now so the next release (3.8.3+) doesn't startup_failure.
1 parent a3b1f4d commit 0df22f2

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

.github/workflows/auto-release-on-version-bump.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -241,3 +241,4 @@ jobs:
241241
permissions:
242242
contents: read
243243
id-token: write # required for OIDC publishing (cascades to the called workflow)
244+
actions: read # required for the called workflow's approval job to read the approvals API

0 commit comments

Comments
 (0)