docs(renovate): the bot token also needs read:organization
Dry run 2450 got past authentication and failed at GET /orgs/Mortis with 403: the token had write:repository, write:issue and read:user only. Co-Authored-By: Claude Sonnet 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01MmzvM9skAvYcph2c9EiPcm
This commit is contained in:
1 parent
c8c23687e2
commit
1312ff67f8
1 file changed
+2
-2
@@ -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`
|
||||
|
||||
Reference in new issue
Block a user