renovate.yml now takes RENOVATE_TOKEN from the repository secret RENOVATE_BOT_TOKEN (token of a Kamino-only bot user) instead of the workflow job token.
Why
Dry run 2445 got git working (#21) and then died on the pull request search: Renovate filters by its own username, which for the job token is the virtual user gitea-actions (uid 0), and Gitea answers 400 user does not exist. The job token cannot be used with Renovate.
Changes
.gitea/workflows/renovate.yml: RENOVATE_TOKEN: ${{ secrets.RENOVATE_BOT_TOKEN }}; permissions: contents: read; the job stops with a clear error when the secret is empty; the header comment explains the job token problem. The bearer extraheader git auth and the report check from #21 are unchanged.
CLAUDE.md, CONTRIBUTING.md: describe the bot user, its scopes (write:repository, write:issue, read:user), that it is a repository secret and not an org secret, and a rewritten open item for the first live run.
Prerequisites (done by the operator)
Kamino-only bot user with write access (no admin) as collaborator on this repository, no push to main, and the repository secret RENOVATE_BOT_TOKEN set.
Verified
actionlint, yamllint, python3 -m unittest discover -s tests/scripts (OK), and the commit hooks.
Not verified
That the bearer header is accepted for a personal access token (fallback: basic auth with the bot user name).
That the first live run can push a branch and open a PR.
That bot PRs trigger Lint and Build and are held by the required checks on main.
A dry run with the bot token: to be run after merge (Actions > Renovate > Run workflow, dry_run=true).
## What
`renovate.yml` now takes `RENOVATE_TOKEN` from the repository secret `RENOVATE_BOT_TOKEN` (token of a Kamino-only bot user) instead of the workflow job token.
## Why
Dry run 2445 got git working (#21) and then died on the pull request search: Renovate filters by its own username, which for the job token is the virtual user `gitea-actions` (uid 0), and Gitea answers `400 user does not exist`. The job token cannot be used with Renovate.
## Changes
- `.gitea/workflows/renovate.yml`: `RENOVATE_TOKEN: ${{ secrets.RENOVATE_BOT_TOKEN }}`; `permissions: contents: read`; the job stops with a clear error when the secret is empty; the header comment explains the job token problem. The bearer extraheader git auth and the report check from #21 are unchanged.
- `CLAUDE.md`, `CONTRIBUTING.md`: describe the bot user, its scopes (`write:repository`, `write:issue`, `read:user`), that it is a repository secret and not an org secret, and a rewritten open item for the first live run.
## Prerequisites (done by the operator)
Kamino-only bot user with write access (no admin) as collaborator on this repository, no push to `main`, and the repository secret `RENOVATE_BOT_TOKEN` set.
## Verified
actionlint, yamllint, `python3 -m unittest discover -s tests/scripts` (OK), and the commit hooks.
## Not verified
- That the bearer header is accepted for a personal access token (fallback: basic auth with the bot user name).
- That the first live run can push a branch and open a PR.
- That bot PRs trigger Lint and Build and are held by the required checks on `main`.
- A dry run with the bot token: to be run after merge (Actions > Renovate > Run workflow, `dry_run=true`).
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Dry run 2445 showed Renovate cannot run on the job token: its pull request lookups filter by its own username, which is the virtual user gitea-actions, and Gitea answers 400 user does not exist. The workflow now reads the repository secret RENOVATE_BOT_TOKEN (token of a bot user with write access to this repository only); the job token is read-only. The empty-secret case fails with a clear message. Docs updated.
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01MmzvM9skAvYcph2c9EiPcm
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
What
renovate.ymlnow takesRENOVATE_TOKENfrom the repository secretRENOVATE_BOT_TOKEN(token of a Kamino-only bot user) instead of the workflow job token.Why
Dry run 2445 got git working (#21) and then died on the pull request search: Renovate filters by its own username, which for the job token is the virtual user
gitea-actions(uid 0), and Gitea answers400 user does not exist. The job token cannot be used with Renovate.Changes
.gitea/workflows/renovate.yml:RENOVATE_TOKEN: ${{ secrets.RENOVATE_BOT_TOKEN }};permissions: contents: read; the job stops with a clear error when the secret is empty; the header comment explains the job token problem. The bearer extraheader git auth and the report check from #21 are unchanged.CLAUDE.md,CONTRIBUTING.md: describe the bot user, its scopes (write:repository,write:issue,read:user), that it is a repository secret and not an org secret, and a rewritten open item for the first live run.Prerequisites (done by the operator)
Kamino-only bot user with write access (no admin) as collaborator on this repository, no push to
main, and the repository secretRENOVATE_BOT_TOKENset.Verified
actionlint, yamllint,
python3 -m unittest discover -s tests/scripts(OK), and the commit hooks.Not verified
main.dry_run=true).🤖 Generated with Claude Code