ci(renovate): run Renovate from a cron workflow on the Collection runner #20

Merged
Defame1297 merged 2 commits from feat/renovate-cron-workflow into main 2026-10-26 08:32:50 +00:00
Owner

Kamino's dependency updates run in a scheduled workflow on the Collection's own runner (the untrusted side) with the Actions job token, so no code from this repository ever runs anywhere else. Self-contained: it does not depend on the env repo PRs.

Changes

  • .gitea/workflows/renovate.yml (new): daily 03:17 UTC (live) and workflow_dispatch with a dry_run choice. A manual run is a dry run unless the input is exactly false (an empty input counts as a dry run). Container: renovate/renovate:44.161.0-full pinned by digest (the digest was read from the Docker Hub API and matched the tag list). Settings through env: only; token is secrets.GITHUB_TOKEN (no org secret); RENOVATE_ALLOWED_COMMANDS is one anchored regex for exactly the bump command; concurrency group, 30-minute timeout, repository guard.
  • renovate.json: a catch-all postUpgradeTasks rule (matchPackageNames: ["*"] because the validator requires a selector) runs python3 scripts/bump_image_versions.py origin/main (executionMode: branch, fileFilters limited to .gitea/workflows/image.yml); only the first upgrade's tasks count for a shared branch, and the script is a no-op when no image input changed. A rule disables bot bumps of renovate.yml itself (bump it by hand).
  • scripts/bump_image_versions.py: docstring describes the real wiring.
  • CLAUDE.md/CONTRIBUTING.md: where Renovate runs and why, how to dry-run, and ONE open item for the first live run.

Verified

  • actionlint, yamllint and REUSE pass; 120 script tests pass; npx renovate-config-validator --strict ([email protected].0) validates the config. The image-version, pin and bot-diff gates accept the new files.

Not verified (settled by the first runs)

  • Whether the job token can push a branch and open a PR on this Gitea, and whether such PRs get Lint and Build. If they do not, required checks never run and automerge must stay off; fallbacks are recorded in CLAUDE.md as an open decision.
  • origin/main presence/depth for the script and tasks running under dry run (from the Renovate 44.161.0 source; confirm in the log), and python3 in the -full image.
  • The workflow holds the runner's single slot for up to 30 minutes at 03:17 UTC; checks queue behind it.

🤖 Generated with Claude Code

Kamino's dependency updates run in a scheduled workflow on the Collection's own runner (the untrusted side) with the Actions job token, so no code from this repository ever runs anywhere else. Self-contained: it does not depend on the env repo PRs. ## Changes - `.gitea/workflows/renovate.yml` (new): daily 03:17 UTC (live) and `workflow_dispatch` with a `dry_run` choice. A manual run is a dry run unless the input is exactly `false` (an empty input counts as a dry run). Container: `renovate/renovate:44.161.0-full` pinned by digest (the digest was read from the Docker Hub API and matched the tag list). Settings through `env:` only; token is `secrets.GITHUB_TOKEN` (no org secret); `RENOVATE_ALLOWED_COMMANDS` is one anchored regex for exactly the bump command; concurrency group, 30-minute timeout, repository guard. - `renovate.json`: a catch-all `postUpgradeTasks` rule (`matchPackageNames: ["*"]` because the validator requires a selector) runs `python3 scripts/bump_image_versions.py origin/main` (`executionMode: branch`, `fileFilters` limited to `.gitea/workflows/image.yml`); only the first upgrade's tasks count for a shared branch, and the script is a no-op when no image input changed. A rule disables bot bumps of `renovate.yml` itself (bump it by hand). - `scripts/bump_image_versions.py`: docstring describes the real wiring. - `CLAUDE.md`/`CONTRIBUTING.md`: where Renovate runs and why, how to dry-run, and ONE open item for the first live run. ## Verified - `actionlint`, yamllint and REUSE pass; 120 script tests pass; `npx renovate-config-validator --strict` ([email protected]) validates the config. The image-version, pin and bot-diff gates accept the new files. ## Not verified (settled by the first runs) - Whether the job token can push a branch and open a PR on this Gitea, and whether such PRs get Lint and Build. If they do not, required checks never run and **automerge must stay off**; fallbacks are recorded in `CLAUDE.md` as an open decision. - `origin/main` presence/depth for the script and tasks running under dry run (from the Renovate 44.161.0 source; confirm in the log), and `python3` in the `-full` image. - The workflow holds the runner's single slot for up to 30 minutes at 03:17 UTC; checks queue behind it. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
Claude added 2 commits 2026-10-26 08:29:44 +00:00
Add .gitea/workflows/renovate.yml (daily 03:17 UTC and workflow_dispatch with a
dry_run choice), using the job token and a digest-pinned renovate/renovate
container, so no Kamino code runs in the production cluster. renovate.json runs
scripts/bump_image_versions.py origin/main as a postUpgradeTasks command for the
image inputs, and the workflow's own container pin is excluded from bot bumps.
Document the dry run, the unverified points and the open decision on CI
triggering for job-token pull requests.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01MmzvM9skAvYcph2c9EiPcm
fix(renovate): fail-safe dry run, catch-all post-upgrade rule, merge open items
Molecule / molecule (pull_request) Skipped
Build / build (pull_request) Successful in 13s
Lint / lint (pull_request) Successful in 15s
b92adb931c
- renovate.yml: a workflow_dispatch is a dry run unless the input is exactly
  "false" (an empty input no longer goes live); drop RENOVATE_BINARY_SOURCE
  install, the -full image ships its tools.
- renovate.json: the postUpgradeTasks rule matches every package, because with
  executionMode branch only the first upgrade of a branch counts; the script is
  a no-op when no image input changed.
- bump_image_versions.py: docstring describes the real wiring.
- CLAUDE.md, CONTRIBUTING.md: one open item for the first live run, runner slot note.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01MmzvM9skAvYcph2c9EiPcm
Defame1297 merged commit a7ea0e0473 into main 2026-10-26 08:32:50 +00:00
Defame1297 deleted branch feat/renovate-cron-workflow 2026-10-26 08:32:51 +00:00
Claude changed title from ci(renovate): run Renovate from a cron workflow on the kamino-runner to ci(renovate): run Renovate from a cron workflow on the Collection runner 2026-11-24 17:38:41 +00:00
Sign in to join this conversation.
No Reviewers
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Mortis/Kamino#20