From 1312ff67f8e282ebca06ef6339bff525ad3d27bd Mon Sep 17 00:00:00 2001 From: Defame1297 Date: Mon, 26 Oct 2026 14:00:08 +0000 Subject: [PATCH] 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 Claude-Session: https://claude.ai/code/session_01MmzvM9skAvYcph2c9EiPcm --- CLAUDE.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CLAUDE.md b/CLAUDE.md index 3371b9a..5716e2b 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`