docs(renovate): correct the kaniko and image-input claims
Remove the image-input packageRule that set no option. Add a dockerfile rule that states, and pins, that base-image tag and digest bumps may automerge (Kamino is the untrusted side, the pin PR's CI exercises the image); the ubuntu job container stays at automerge false. Say kaniko is pinned by layer digests that no manager reads and is updated by hand. List what is not enabled or verified (GITHUB_COM_TOKEN for the pre-commit manager, main's required checks, github.head_ref) and that a hand edit on a renovate/ branch stops Renovate's rebases. renovate-config-validator --strict (renovate 44.161.0) passes. Co-Authored-By: Claude Sonnet 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01MmzvM9skAvYcph2c9EiPcm
This commit is contained in:
1 parent
8e9a8c5df0
commit
b7b14b7277
2 files changed
+26
-14
No files matched your search
@@ -66,8 +66,11 @@ list. Nothing below runs yet unless it says so.
|
||||
|
||||
- **Policy:** minor and patch bumps automerge, majors are manual. `ansible-core` minor and major
|
||||
are manual too (a new minor needs a `tests/sanity/ignore-2.NN.txt`), and `ansible-core` and
|
||||
`ansible-lint` bump in one group. The `ubuntu` job container of `image.yml` and anything
|
||||
naming kaniko never automerge: that job holds the registry push credential.
|
||||
`ansible-lint` bump in one group. Dockerfile base-image tag and digest bumps (`images/*/Dockerfile`)
|
||||
stay automergeable: Kamino is the untrusted side and the pin PR's CI exercises the new image. The
|
||||
`ubuntu` job container of `image.yml` never automerges: that job holds the registry push credential.
|
||||
kaniko is pinned by layer digests in `image.yml`; no Renovate manager reads them, so it is updated by
|
||||
hand (the `/kaniko/` rule in `renovate.json` is only a safety net).
|
||||
- **Two-PR loop for an image input** (`requirements-dev.txt`, `.pre-commit-config.yaml`,
|
||||
`images/**`): PR 1 carries the input change plus the PATCH bump of the image `version:` in
|
||||
`image.yml` (`scripts/bump_image_versions.py [<base-ref>]`, idempotent, edits only the
|
||||
@@ -82,6 +85,8 @@ list. Nothing below runs yet unless it says so.
|
||||
lines in `.pre-commit-config.yaml`, FROM tags/digests and the `uv==` pin in `images/*/Dockerfile`,
|
||||
the matrix `version:` lines and the ubuntu job container pin in `image.yml`, and the image
|
||||
pins in `lint.yml`, `build.yml` and `molecule.yml`. Anything else fails, `renovate.json` included.
|
||||
Tags are `[A-Za-z0-9._-]` only, FROM and ubuntu lines must keep their digest, matrix versions must stay in
|
||||
place and rise, and a binary or one-sided change fails.
|
||||
The branch name is attacker-controlled, so this only constrains the bot's own pull requests; its
|
||||
purpose is that automerging them cannot alter workflow logic or reach the org secrets.
|
||||
- **No Collection release from tooling bumps:** everything involved is in `galaxy.yml`
|
||||
@@ -91,7 +96,16 @@ list. Nothing below runs yet unless it says so.
|
||||
`.gitea/workflows` mentions `git.rkdr.net/defame1297/`.
|
||||
- **Not enabled yet:** the Renovate run itself, `postUpgradeTasks`, credentials for the
|
||||
`git.rkdr.net` registry (`hostRules`), pin-follow, and a validated `renovate.json` on the
|
||||
instance's Renovate version. The `pre-commit` manager is beta; the hooks come from github.com.
|
||||
instance's Renovate version. The `pre-commit` manager is beta; the hooks come from github.com, so it
|
||||
needs `GITHUB_COM_TOKEN` on the Renovate instance. Unverified: that bot PRs are held by `main`'s
|
||||
required status checks (check the branch protection before enabling automerge), and that
|
||||
`github.head_ref` is populated on this Gitea (the gate fails closed on an empty one, via
|
||||
`EVENT_NAME`).
|
||||
- **Hand edits on a bot branch:** a commit pushed by hand to a `renovate/` branch makes Renovate treat
|
||||
the branch as modified: it stops rebasing it, so merge that pull request by hand.
|
||||
- **The guard runs from `main`:** the lint step extracts `scripts/` from `origin/main` and runs the
|
||||
guard from there, so a pull request cannot weaken its own gate (the PR copy runs only while `main`
|
||||
has no guard). A change to the guard takes effect for other PRs after it merges.
|
||||
- A pin-only pull request (only `lint.yml`, `build.yml`, `molecule.yml`) does not match any
|
||||
`image.yml` push path (`images/**`, `requirements-dev.txt`, `.pre-commit-config.yaml`,
|
||||
`.gitea/workflows/image.yml`), so it rebuilds nothing.
|
||||
Reference in new issue
Block a user