Skip to content

[WRONG BRANCH] release: carry the release.yml permissions fix onto preview for v2.40.0-preview.20260902 - #3264

Merged
lidge-jun merged 1 commit into
previewfrom
codex/promote-preview-relfix
Sep 2, 2026
Merged

[WRONG BRANCH] release: carry the release.yml permissions fix onto preview for v2.40.0-preview.20260902#3264
lidge-jun merged 1 commit into
previewfrom
codex/promote-preview-relfix

Conversation

@lidge-jun

@lidge-jun lidge-jun commented Sep 2, 2026

Copy link
Copy Markdown
Owner

Summary

  • Cherry-pick of fix(release): pass the bump job's permissions through the reusable-workflow call #3262 (7ce0ba518) onto preview: release.yml's bump-dev-version caller job now declares the contents: write + pull-requests: write that its reusable callee requires. Both v2.40.0 dispatches failed at startup without this; release.yml runs from the release branch, so the fix has to be on preview itself.
  • One file, 8 added lines, no code.

Verification

  • tests/ci-workflows.test.ts 135 pass on dev; YAML parse confirms the job permissions.
  • After merge the v2.40.0 dispatch is re-run against the new preview tip as expected-sha.

Checklist

Summary by CodeRabbit

  • Chores
    • Improved release automation reliability, helping development-version updates complete successfully during the release process.

…rkflow 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 <jun@lidge.dev>
(cherry picked from commit 7ce0ba5)
@lidge-jun
lidge-jun requested a review from Ingwannu as a code owner September 2, 2026 09:43
@lidge-jun

Copy link
Copy Markdown
Owner Author

Owner admin merge, user-authorized; workflow-only cherry-pick of #3262.

@lidge-jun
lidge-jun merged commit 49812c9 into preview Sep 2, 2026
6 of 8 checks passed
@lidge-jun
lidge-jun deleted the codex/promote-preview-relfix branch September 2, 2026 09:44
@github-actions

github-actions Bot commented Sep 2, 2026

Copy link
Copy Markdown
Contributor

Deterministic PR hygiene checks passed.

@github-actions github-actions Bot added the bug Something isn't working label Sep 2, 2026
@github-actions

github-actions Bot commented Sep 2, 2026

Copy link
Copy Markdown
Contributor

⏳ DRAFT

  • wrong target branch (preview); retarget to dev.

What to do

  • Retarget this PR to dev — all contributions go to dev.

Its title has been prefixed with [WRONG BRANCH].
Automatic draft conversion failed (token cannot change draft status). Please convert this pull request to a draft manually. The required enforce-target check will keep failing until every issue above is resolved.

@github-actions github-actions Bot changed the title release: carry the release.yml permissions fix onto preview for v2.40.0-preview.20260902 [WRONG BRANCH] release: carry the release.yml permissions fix onto preview for v2.40.0-preview.20260902 Sep 2, 2026
@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review Completed 2026-09-02T09:45:57.357720Z 3224168 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@coderabbitai

coderabbitai Bot commented Sep 2, 2026

Copy link
Copy Markdown
Contributor

Review Change Stack

Caution

Review failed

The pull request is closed.

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: ASSERTIVE

Plan: Team

Run ID: 14e753da-3eab-41fc-b8f7-372d1a4b1f00

📥 Commits

Reviewing files that changed from the base of the PR and between 7fd141f and 3224168.

📒 Files selected for processing (1)
  • .github/workflows/release.yml

📝 Walkthrough

Walkthrough

The release workflow adds write permissions to the bump-dev-version job. The permissions match those declared by the called dev-version-bump.yml workflow.

Changes

Release workflow permissions

Layer / File(s) Summary
Configure bump job permissions
.github/workflows/release.yml
The bump-dev-version job declares contents: write and pull-requests: write for the reusable workflow call at lines 70–77.

Estimated code review effort: 2 (Simple) | ~5 minutes

✨ Finishing Touches 💡 1
🛠️ Fix failing CI checks 💡
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch codex/promote-preview-relfix

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@lidge-jun

Copy link
Copy Markdown
Owner Author

리뷰 · 우선순위 70 / 80

이 PR은 #3262 권한 수정을 preview 채널에 cherry-pick 한 것이다. #3260 미리보기 승격 직후, preview 쪽 release.yml 에도 같은 bump-dev-version 호출 권한(contents: write + pull-requests: write)이 있어야 채널 디스패치가 시동한다. 제목의 [WRONG BRANCH] · enforce-target 빨강은 ALLOWED_BASES=["dev"] 설계다. 베이스를 dev 로 바꾸지 마라.

리뷰 시점 origin/dev272ff6b11 이다. 미리보기 태그 v2.40.0-preview.20260902 는 tip 49812c9e8(이 수리 포함)를 가리킨다. 안정 쪽 쌍둥이는 #3263 이다. 제품 코드 변경 없음. 사후 기록용 리뷰다.

경로 base preview / cherry-pick #3262 - 워크플로 권한 8줄만 옮긴다.
경로 GitHub Actions / enforce-target - 채널 수리 PR의 알려진 빨강. admin merge가 맞다.
경로 태그 v2.40.0-preview.20260902 - 이미 이 tip 위에 있다. 재머지 불필요.
경로 현재 dev - 같은 블록이 이미 있다. 재겨냥 금지.

메인테이너의 판단이 필요한 지점

  • (사후) preview/main cherry-pick을 자동화할지 수동 체크리스트로 둘지
  • 다음 미리보기 승격 전에 권한 블록 존재 여부를 확인할지

너의 추천
이미 머지·태그까지 끝났으니 추가 작업 없다. #3260 승격과 짝으로 보면 된다.

이 댓글은 grok-bot이 작성했습니다

lidge-jun added a commit that referenced this pull request Sep 2, 2026
…toggle (#3269)

* devlog(release): 080 — bot PR toggle provenance and decision, service-lifecycle trigger gap

* chore(devlog): wp1 provenance closeout marker

* devlog(release): 080 — toggle applied via REST, read-back true

* ci(service-lifecycle): trigger on release.yml changes so the release gate cannot dead-end

release.yml requires a service-lifecycle run for the release SHA when any
gated path changed since the previous tag, but a release-branch commit that
touched only release.yml (the v2.40.0 permissions carry, #3263/#3264) matched
no lifecycle trigger path, so both dispatches needed a manual run. The path
is now in both trigger lists and the gate regex; tests/ci-workflows keeps the
three in sync.

---------

Co-authored-by: jun <jun@lidge.dev>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant