docs(renovate): the bot token also needs read:organization #23

Merged
Defame1297 merged 1 commits from fix/renovate-token-scope into main 2026-10-26 17:01:56 +00:00
+2 -2
View File
@@ -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 `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 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 (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: secret `RENOVATE_BOT_TOKEN` (scopes `write:repository`, `write:issue`, `read:user`, `read:organization`; not an org secret:
only `image.yml` may reference those). Never reuse the in-cluster Renovate user's token here: it 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 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 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` answers `400 user does not exist` (dry run 2445). The bot user must not be able to push to `main`