Repository navigation
Renovate を k8s の CronJob で回す - #388
Merged
Merged
Conversation
GitHub Actions(5ym/repo-config)と Forgejo Actions(doa/renovate)で毎時回していたのを、 apps/renovate/ の CronJob 3 本(danything・5ym・Forgejo の doa)にまとめる。15 分おき。 GitHub の schedule は 15〜40 分遅れ、丸ごと飛ばされることもあった。 GitHub App のトークンは Renovate のイメージの node で毎回作る。秘密は Infisical の /renovate/renovate-secrets。無いあいだは何もせずに終わる。 Job は失敗でも成功で終える(Degraded で ArgoCD の同期が止まるのを避ける。k8up-notify と同じ)。 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01JbmWyUB9jcBcYCnNyiGBSV
|
Claude finished @5ym's task in 52s —— View job レビュー: Renovate を k8s の CronJob で回す (#388)
結論: マージを止めるほどの問題は見つかりませんでした。 以下は要確認と軽い指摘です。 不具合
セキュリティ
設計
テスト
|
🍹
|
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01JbmWyUB9jcBcYCnNyiGBSV
|
Claude finished @5ym's task in 22s —— View job レビュー (更新): Renovate を k8s の CronJob で回す (#388)新しいコミット 3267a41 ( 結論: マージを止める問題はありません。 前回から増えた指摘は 1 件で、要確認です。 不具合
セキュリティ問題なし。鍵は 設計
テストマニフェストのため自動テストはありません。本文の確認手順で足ります。マージ後は、手順 1 (Infisical に鍵を入れる) → 各 CronJob を手動で 1 回走らせる → workflow の schedule を外す、の順序を守ってください。 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
GitHub Actions (5ym/repo-config の
renovate.yml) と Forgejo Actions (doa/renovate) で毎時回していた Renovate を、apps/renovate/の CronJob にまとめる。GitHub の schedule は 15〜40 分遅れ、丸ごと飛ばされることもあった。中身
renovate-danything/renovate-5ym(GitHub) /renovate-forgejo(fj.doany.io の doa)。15 分おき、5 分ずつずらす。concurrencyPolicy: ForbidRENOVATE_ALLOWED_COMMANDSなど)github-app-token.mjs。JWT → インストールを探す → トークン)/renovate/renovate-secrets(github-app-private-key/forgejo-token/github-com-token)。無いあいだは何もせずに exit 0apps/renovate/renovate.yamlに直した確かめたこと
github-app-token.mjsが作る JWT を openssl で検証した (RS256、iss = client ID)。本物の鍵での実行はまだ (鍵は Infisical に入れてから)RENOVATE_ALLOWED_COMMANDSが今と同じ値になるマージ後
/renovate/renovate-secretsを作って鍵を入れる (apps/renovate/README.md の表)workflow_dispatchは残す)🤖 Generated with Claude Code
https://claude.ai/code/session_01JbmWyUB9jcBcYCnNyiGBSV