ci: use GitHub App for Release Please - #334
Conversation
413b6cc to
4861b42
Compare
There was a problem hiding this comment.
Pull request overview
Updates the release automation workflow to authenticate Release Please using a GitHub App installation token (minted from the existing release environment) instead of GITHUB_TOKEN, so that release-branch pushes and release PR events can trigger downstream workflows as expected.
Changes:
- Add a step to mint a repository-scoped GitHub App installation token from the
releaseenvironment. - Pass the GitHub App token to
googleapis/release-please-actionand disable defaultGITHUB_TOKENpermissions for the release job. - Preserve the existing publish job behavior (RubyGems publish + retry flow unchanged).
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
HAYDEN-OAI
left a comment
There was a problem hiding this comment.
One release-blocking issue: the GitHub App private key required by the new release workflow is not configured for this repository.
HAYDEN-OAI
left a comment
There was a problem hiding this comment.
Re-reviewed the complete release-workflow change at 4861b42. Independently verified that the protected, main-only release environment now contains OPENAI_SDKS_APP_PRIVATE_KEY, that OPENAI_SDKS_APP_CLIENT_ID matches the openai-sdks GitHub App, and that the previous blocking thread is resolved. The App token is repository-scoped with explicit contents, issues, and pull-request write permissions; the publishing and retry flow is unchanged. No substantive findings.
Summary
openai-sdksGitHub App from environment configurationGITHUB_TOKENpermissionsWhy
Release Please currently authenticates with
GITHUB_TOKEN. Events created with that token do not normally start downstream workflows. A GitHub App installation token triggers the normal push and pull-request workflows for the generated release branch.This is the Ruby equivalent of openai/openai-python#3577. Ruby does not have Python's manual release-PR workflow-dispatch workaround, so no CI dispatch cleanup is needed here.
Repository configuration
openai-sdks(App ID3705508, client IDIv23li2AtcmhLHO07J87)release, restricted tomainwith no required-reviewer gateOPENAI_SDKS_APP_CLIENT_IDOPENAI_SDKS_APP_PRIVATE_KEYValidation
actionlintv1.7.7.github/workflows/create-releases.ymlgit diff --check