Skip to content

ci(release): open the release pull request with the delivery app - #192

Merged
kvlonge merged 1 commit into
mainfrom
ci/release-delivery-token
Nov 12, 2026
Merged

kvlonge merged 1 commit into
mainfrom
ci/release-delivery-token

Conversation

@kvlonge

@kvlonge kvlonge commented Nov 12, 2026

Copy link
Copy Markdown
Contributor

Why

Release Please opens the release pull request with github.token. A pull request opened with that token starts no pull_request runs, so its required checks have to be dispatched separately. When the branch is regenerated, the pull_request runs wait for manual approval. The organization's delivery app avoids both, as it already does for SQLBuild.

Changes

  • release-please.yml mints a delivery app token with actions/create-github-app-token, scoped to this repository, and passes it to release-please-action. When vars.CHIO_DELIVERY_APP_ID is not set, the step is skipped and Release Please keeps github.token. Publish and the dispatched release checks keep github.token.
  • The clutter guard allows the app's private key name only in release-please.yml, and only while that workflow has no pull_request or pull_request_target trigger. Negative tests fail if the name appears in any other file, or if the workflow gains a pull request trigger.

Verification

  • The clutter guard tests pass (33), and the guard finds nothing on the tree.
  • make check-ci passes.
  • The first Release Please run after this merges shows whether the app token was minted. Its log is checked when it runs.

Release Please used github.token, so the release pull request it opened
started pull request runs only after manual approval, and the
organization auto-merge workflow did not treat it as the delivery app's.
It now mints the delivery app token, as SQLBuild does, and passes it to
release-please-action, keeping github.token when the App's variable is
not set. Publish and the dispatched release checks keep github.token.

The clutter guard allows the App's key name only in the release workflow,
and only while that workflow has no pull request trigger.
@kvlonge
kvlonge added this pull request to the merge queue Nov 12, 2026
Merged via the queue into main with commit fa9131b Nov 12, 2026
13 checks passed
@kvlonge
kvlonge deleted the ci/release-delivery-token branch November 12, 2026 06:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant