diff --git a/CLAUDE.md b/CLAUDE.md index 41a19d5..21ce282 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -97,8 +97,8 @@ protection, or create tags: those are the operator's. `workflow_dispatch`, on the `kamino-runner` (`kamino-docker`): the untrusted side, so code from this repository never runs in the production cluster (ADR 0004). It authenticates as a Kamino-only bot user (write access to this repository only, no admin, no other repository) whose token is the repository - secret `RENOVATE_BOT_TOKEN` (scopes `write:repository`, `write:issue`, `read:user`; not an org secret: - only `image.yml` may reference those). Never reuse the in-cluster Renovate user's token here: it + secret `RENOVATE_BOT_TOKEN` (scopes `write:repository`, `write:issue`, `read:user`, `read:organization`; not an org secret: + only `image.yml` may reference those). `read:organization` is needed because Renovate reads the owner organisation when it initialises the repository (dry run 2450: 403 without it). Never reuse the in-cluster Renovate user's token here: it reaches the production repository. The workflow's own job token does not work: Renovate filters its pull request lookups by its own username, which is the virtual user `gitea-actions`, and Gitea answers `400 user does not exist` (dry run 2445). The bot user must not be able to push to `main`