Skip to content

Commit 3224168

Browse files
lidge-junjun
andcommitted
fix(release): pass the bump job's permissions through the reusable-workflow call (#3262)
Both v2.40.0 release dispatches (33615174183 preview, 33615177849 main) died at startup_failure: a workflow_call cannot grant its callee more than the calling job holds, and dev-version-bump.yml's job declares contents+pull- requests write. #3129 wired the call but never dispatched a release, so this is its first live run. The caller job now declares exactly the callee's two permissions; no other job in release.yml gains anything. Co-authored-by: jun <[email protected]> (cherry picked from commit 7ce0ba5)
1 parent 7fd141f commit 3224168

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

‎.github/workflows/release.yml‎

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,14 @@ jobs:
6767
bump-dev-version:
6868
needs: publish
6969
if: ${{ inputs.dry-run != true }}
70+
# A reusable-workflow CALL cannot grant the callee more than the calling job holds,
71+
# and GitHub refuses the whole run at startup when the called workflow's own job
72+
# declares permissions the caller did not pass down ("startup_failure", runs
73+
# 33615174183 / 33615177849 — the first dispatches since #3129 wired this call).
74+
# The callee's job declares exactly these two; nothing else in this file gains them.
75+
permissions:
76+
contents: write
77+
pull-requests: write
7078
uses: ./.github/workflows/dev-version-bump.yml
7179
with:
7280
released-version: v${{ inputs.version }}

0 commit comments

Comments
 (0)