Skip to content

ci(release): open the release PR as a GitHub App when one is configured - #36

Open
marek-e wants to merge 1 commit into
mainfrom
ci/release-app-token
Open

marek-e wants to merge 1 commit into
mainfrom
ci/release-app-token

Conversation

@marek-e

@marek-e marek-e commented Nov 25, 2026

Copy link
Copy Markdown
Collaborator

Summary

release-please opens the release PR with a personal access token today. That token expires, belongs to one person, and makes that person the author of every release PR. This lets a GitHub App do it instead.

 release-please job
+  if RELEASE_APP_CLIENT_ID is set
+    mint an app token             # contents: write, pull-requests: write, lasts one job
   release-please
-    token = RELEASE_PLEASE_TOKEN, else the default token
+    token = app token, else RELEASE_PLEASE_TOKEN, else the default token

Until the app exists, the workflow behaves as it does now. Setting the variable and the secret switches it over, with no further code change:

Setting Kind Value
RELEASE_APP_CLIENT_ID repository variable the app's client ID
RELEASE_APP_PRIVATE_KEY repository secret the app's private key, the whole .pem file

docs/RELEASING.md describes the app, and now states what the Protect main ruleset requires since today's change: no approval, and a conventional PR title.

Evidence

  • The workflow parses, and the release-please step keeps its release id, which the later jobs read.
  • actions/create-github-app-token is pinned to the commit of v3.4.0. It uses client-id, because that version marks app-id as deprecated.
  • Not run: the app sign-in. It needs the app. The first push to main after the two settings exist is its test: the Release PR job either mints a token or fails with the action's error.

Merge Danger

Door: two-way

Blast Radius: releases

With neither setting present, the new step is skipped and nothing changes. A wrong client ID or key fails the Release PR job on every push to main until it is fixed or the variable is removed. No release PR is lost in that case, because release-please rebuilds it on the next successful run.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 25, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-25T17:47:44.377009Z 1639f41 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

This branch has not been deployed

No deployments
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