chore: create the kamino-release bot account, its token, the v* tag allowlist entry and the repository secret #174
Notifications
Due Date
No due date set.
Blocks
Depends on
Reference: Mortis/Kamino#174
Reference in new issue
Block a user
Spec: Release automation. Repository settings are the maintainer's.
Blocked by the settings issue: it creates the
release/*branch rule that step 4a adds the bot to.What
kamino-release(bot accounts are new in Gitea 28; how one is issued a token is unverified, so if it cannot get one, use an ordinary user account used for nothing else).Mortis/Kaminoonly, as a collaborator: not an organisation owner, no other repository. It is not added to the merge allowlist.release/next, creating releases and tags), nothing else.v*protected-tag allowlist, next to the maintainer.4a. Add the account to the push and force-push allowlist of the
release/*branch rule (release/*keeps its push allowlist, decided in Pushes onto a pull request that has a scheduled merge). The settings issue creates that rule with the maintainer only, so this step waits for it.RELEASE_TOKEN, used only byrelease.yml.This issue holds all of the release bot's access. The settings issue no longer has a release bot step.
Acceptance
release/nextcan be pushed and force-pushed; with the agent account's token it cannot.v*tag allowlist and is not an organisation owner.Why
The Actions job token cannot do this job on Gitea 28.0.0: pull requests it opens start no workflows (so the required checks never run), and the Actions user cannot be added to a protected-tag allowlist.
Accepted risk
Same-repo pull requests can read repository secrets, so anyone with write access can read this token and push a tag. The threat model accepts "write access is secret access"; the ADR records it.
Not verified
How a Gitea 28 bot account gets a token.
Review of the map (2026-11-15): corrections to this issue.
v*tag allowlist;write:repositorytoken as a repository secret", and its acceptance needs that test. This issue already holds the same work (items 2 to 5) and is in Continuous delivery, so the settings issue cannot close before this one. Proposal for the maintainer: keep the release-bot setup and its test here only, add "test: the bot pushes a branch and opens a pull request with the token" to this issue, and drop the item from the settings issue.Review of the map (2026-11-17).
release/*push allowlist decided in Code-owner approval against Renovate automerge, and where secrets live, point 6. Add step 4a: add the account to the push and force-push allowlist of therelease/*branch rule, which the settings issue creates with the maintainer only. Acceptance addition: with the bot's tokenrelease/nextcan be pushed and force-pushed; with the agent account's token it cannot.release/*rule is kept; open in Pushes onto a pull request that has a scheduled merge.Body edited on 2026-11-20 (final validation round of the map, #87 (comment)): added step 4a (the bot joins the push and force-push allowlist of the
release/*rule, which is kept per #248 and created by #192 with the maintainer only) and its acceptance test from the 2026-11-17 comment. No gate about unattended agents is added before the token is stored: decision 2 of that round withdrew it.Final validation round, second pass (2026-11-20): body edited.
release/*branch rule that step 4a adds the bot to; a line saying so is in the body, next to step 4a. #192's own "does not wait for #174" stays true.Scope added by #359, the pull request for #262:
docs/contributing/maintaining.mdlists only the secrets a workflow references today, so the release bot is not in it yet. When the release bot's token becomes a secret that a workflow references, the same change updatesmaintaining.mdin three places:write:repository, and "Token issued on the bot's account in this Gitea; repository secret".release/*push allowlist and thev*tag allowlist.