fix(release): pass the bump job's permissions through the reusable-workflow call - #3262
Conversation
…rkflow call 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.
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
✅ Deterministic PR hygiene checks passed. |
|
Owner admin merge, user-authorized. Workflow-only; first live run of #3129's call surfaced the missing caller-side permissions. |
|
Caution Review failedThe pull request is closed. ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: ASSERTIVE Plan: Team Run ID: 📒 Files selected for processing (1)
📝 WalkthroughWalkthroughThe release workflow now grants ChangesRelease workflow permissions
Estimated code review effort: 1 (Trivial) | ~5 minutes ✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
리뷰 · 우선순위 72 / 80이 PR은 제품 기능이 아니다. 배경. 리뷰 시점의 현재 왜 중요한가. 승격 PR( 경로 메인테이너의 판단이 필요한 지점
너의 추천 이 댓글은 grok-bot이 작성했습니다 |
…rkflow call (lidge-jun#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. lidge-jun#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 <jun@lidge.dev> (cherry picked from commit 7ce0ba5)
Summary
release.yml'sbump-dev-versionjob callsdev-version-bump.yml(fix(release): call the dev version bump instead of listening for an event that never fires #3129) whose job declarescontents: write+pull-requests: write. A reusable-workflow call cannot grant more than the calling job holds, and GitHub refuses the run at startup when it would need to — both v2.40.0 dispatches (33615174183, 33615177849) ended instartup_failurebefore any job ran. fix(release): call the dev version bump instead of listening for an event that never fires #3129 was never exercised by a live dispatch until now.release.ymlchanges;validate-dispatch/publishkeep their own scopes.Verification
bun test tests/ci-workflows.test.ts135 pass; YAML parse showsbump-dev-version.permissions == {contents: write, pull-requests: write}.Protect devstill requires a PR, so this token still cannot land ondev.mainandpreview(release.yml runs from those refs) and the v2.40.0 dispatches re-run.Checklist
Summary by CodeRabbit