ci: use GitHub App for Release Please - #3577
Merged
Merged
Conversation
jbeckwith-oai
marked this pull request as ready for review
August 3, 2026 23:23
HAYDEN-OAI
approved these changes
Aug 3, 2026
HAYDEN-OAI
left a comment
Contributor
There was a problem hiding this comment.
Reviewed the complete exact-head diff, all commits and prior discussion, and the surrounding release and CI workflows. Verified that the openai-sdks installation token is scoped to this repository with only the required contents, issues, and pull-request write permissions; the protected credential environment is restricted to main; release-branch protections permit the generated branch; App-created push and pull-request events cover the required checks without recursive releases; API-key-backed examples are excluded from release-branch pushes; and release outputs plus the existing build/publish retry path remain intact. No substantive correctness, security, or reliability issues found.
This was referenced Aug 4, 2026
jbeckwith-oai
added a commit
to openai/openai-java
that referenced
this pull request
Aug 4, 2026
## Summary - mint a repository-scoped installation token for the `openai-sdks` GitHub App from the `release` environment - pass that token to Release Please and disable the release job's built-in `GITHUB_TOKEN` permissions - remove the manual release-PR CI dispatch workaround now that app-authored branch pushes and pull-request events trigger Actions normally - simplify API compatibility CI back to normal pull-request events Java equivalent of openai/openai-python#3577. ## Validation - `git diff --check` - `actionlint` v1.7.7 on `.github/workflows/ci.yml` and `.github/workflows/create-releases.yml` - YAML parse of both changed workflows - `./scripts/lint` attempted, but local execution is blocked because this machine only has JDK 25 installed (Gradle fails during configuration with `25.0.2`); CI runs with JDK 21
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
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, which required a separate dispatch job and release-specific workflow inputs. A GitHub App installation token triggers the normal push and pull-request workflows, so the workaround can be deleted.Repository configuration
openai-sdks(App ID3705508, client IDIv23li2AtcmhLHO07J87)releaseOPENAI_SDKS_APP_CLIENT_IDOPENAI_SDKS_APP_PRIVATE_KEYmainand has no required-reviewer or wait-timer gateThe
releaseenvironment now contains both App credentials expected by the workflow.Validation
./scripts/lintactionlintv1.7.7 on the changed workflowsgit diff origin/main...HEAD --check