ci(renovate): grant App token statuses:write to fix Renovate PRs not being created - #2362
Conversation
issues 起動時の LOG_LEVEL=debug は診断目的だったので info に戻す。 PR が作られない真因はリポジトリの ruleset(Restrict creations)で Renovate App が bypass に入っておらず POST /git/refs が 422 になるためと判明済み(ワークフロー側の 問題ではない)。 RENOVATE_FORCE を workflow_dispatch 限定にした変更は、checkbox 起動で 「チェックした 1 項目だけ作る」正しい挙動になるため維持する。 https://claude.ai/code/session_01DLhRuEDFV4rynxukxidJFK
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
WalkthroughSelf-hosted Renovate ジョブの ChangesRenovate LOG_LEVEL 判定の簡素化
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Possibly related PRs
Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ 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 |
✅ Code Duplication ReportSummary
✅ Code duplication rate is within the acceptable threshold. 📊 Detailed ReportConsole OutputDuplicate Code BlocksDuplicate 1
Duplicate 2
Duplicate 3
Duplicate 4
Duplicate 5
Duplicate 6
Duplicate 7
Duplicate 8
Duplicate 9
Duplicate 10
... and 35 more duplicate blocks. Run 📦 Full Report: Download the complete jscpd report from GitHub Actions Artifacts |
Coverage Report
File CoverageNo changed files found. |
概要
「Renovate の PR が作られない」問題の最終修正。これまでの調査で原因が2段階あったことが判明:
27006559806で特定。真因(本PR)
Renovate は
minimumReleaseAgeの内部チェックをrenovate/stability-daysという commit status として branch に書き込む。App トークンにstatuses:writeが無いため:Renovate はこの 403 を
integration-unauthorized→repository-changedに変換し、run 全体を中断。このため最初の非 security branch で abort し、以降の PR が一切作られなかった。→ security PR #2361 だけ成功したのは、security 更新が
minimumReleaseAgeを完全 bypass し stability-days status を書かない=403 に当たらないため。「1つだけ」と完全に整合。変更
actions/create-github-app-tokenにpermission-statuses: writeを追加。(vulnerability-alerts / Dependabot alerts のときと同じ App 側付与が必要なパターン)
検証
App 権限付与+本PRマージ後、workflow_dispatch を1回起動し、debug run で出ていた
repository-changed中断が消え、renovate/stability-daysstatus が正常に書かれて残りの PR が作成され、result: "done"で完走することを確認する。補足(このブランチに含まれる別コミット)
LOG_LEVEL=debugをinfoに戻す revert(ci(renovate): surface checkbox handling for issues-triggered runs #2360 で入れた診断レイヤの後片付け)。RENOVATE_FORCEを workflow_dispatch 限定にする変更は維持(checkbox は「チェックした1項目だけ作る」正しい挙動)。https://claude.ai/code/session_01DLhRuEDFV4rynxukxidJFK