ci: use GitHub App for Release Please - #845
Conversation
There was a problem hiding this comment.
Pull request overview
Updates the repository’s GitHub Actions release automation to authenticate Release Please using a GitHub App installation token (scoped via the castiron-promotion environment), removing the prior manual workflow-dispatch workaround for release PR CI and simplifying API compatibility CI back to standard pull request triggering.
Changes:
- Generate a repo-scoped GitHub App installation token and pass it to Release Please, while disabling the release job’s default
GITHUB_TOKENpermissions. - Remove the “dispatch CI for release PR” workaround now that App-authored events trigger workflows normally.
- Restrict API compatibility CI back to running only for
pull_requestevents and remove the dispatch-specific validation/base-SHA logic.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
.github/workflows/create-releases.yml |
Switch Release Please auth to a GitHub App token (environment-scoped), drop the release-PR workflow-dispatch CI job, and simplify outcome verification accordingly. |
.github/workflows/ci.yml |
Remove workflow_dispatch handling from the API compatibility job and associated logic, returning it to PR-only execution. |
💡 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.
Independent SDK review found one high-priority release-automation blocker; see the inline comment.
HAYDEN-OAI
left a comment
There was a problem hiding this comment.
Re-reviewed the complete workflow changes at d031482. The prior release-authentication blocker is resolved: the dedicated release environment is main-only, has no approval gate, and contains the matching GitHub App client ID and private-key secret. The requested contents, issues, and pull-request write scopes match the App, and normal release-PR CI plus manual release retries remain intact. No substantive findings.
Summary
openai-sdksGitHub App from thereleaseenvironmentGITHUB_TOKENpermissionsJava equivalent of openai/openai-python#3577.
Validation
git diff --checkactionlintv1.7.7 on.github/workflows/ci.ymland.github/workflows/create-releases.yml./scripts/lintattempted, but local execution is blocked because this machine only has JDK 25 installed (Gradle fails during configuration with25.0.2); CI runs with JDK 21