chore(release): unify release automation as Oli bot - #252
Merged
Merged
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Release preparation uses a separate
RELEASE_PR_TOKEN, while asset uploads, attestations, and promotion use the built-in Actions identity. Route release PRs and all GitHub release mutations through the existing private GitHub App, with phase-scoped installation tokens. Keep built-in release mutation scopes read-only, retainactions: writein the dedicated CI dispatch job, and preserve workflow OIDC for registry authentication and provenance signing.Use Oli [bot] for generated commit names and update the linked noreply address to the verified renamed account
oli-release-bot[bot](same user ID326451763). Preserve frozen-candidate authorship. Renew Contents-only upload tokens five minutes before expiry, share refreshes across concurrent lanes, and revoke issued tokens after every lane drains. Draft inventories and bootstrap collision preflight use App credentials with Contents write so existing drafts remain visible. Update the controls audit and migration documentation.Release Intent
GitHub setup
The existing App is Oli Release Bot, with account
oli-release-bot[bot]and unchanged numeric user ID. Its Client ID and verified private key are configured in all three protected environments:release-pr,release-bootstrap, andrelease-publish.Live authentication confirmed Contents, Workflows, Issues, Pull requests, and Attestations read/write, plus Actions read-only, in both the App registration and accepted installation. Minting a token restricted to
f0rr0/oliphauntsucceeded with those exact requested permissions. Read-only repository, release, PR, and Actions probes passed; the test token was revoked. The repository's default Actions token remains read-only.After merge, run release PR preparation and confirm that an App-created PR starts normal PR CI. Then remove/revoke the obsolete
RELEASE_PR_TOKENand retire the old App key after confirming the migration works. Existing credentials remain active during migration.Verification
moon run release-tools:js-format-check release-tools:js-lintbash tools/release/release-check.sh --mutation-tests-onlybash tools/release/release-metadata-check.shbash tools/ci/check-workflows.sh(pinned actionlint, zizmor, and workflow behavior tests)git diff --check