ci: add Castiron promotion workflow#313
Closed
HAYDEN-OAI wants to merge 2 commits into
Closed
Conversation
There was a problem hiding this comment.
Pull request overview
Adds a manually triggered GitHub Actions workflow to promote previously approved Castiron candidates by invoking a pinned writer from openai/openai, gated behind repository/branch checks, a protected environment, and an explicit enable flag.
Changes:
- Introduces a default-off
workflow_dispatchpromotion workflow with repository +mainbranch guards and per-repo concurrency. - Checks out a pinned
openai/openaicommit and runs the Castiron public PR writer via Bazel. - Mints separate GitHub App tokens for monorepo checkout (read-only) and SDK promotion (write-scoped), and logs into Azure via OIDC.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
HAYDEN-OAI
marked this pull request as ready for review
July 23, 2026 19:18
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
workflow_dispatchentrypoint for promoting approved Ruby Castiron candidates into a publicmaindraft PRopenai-rubyand pin the shared writer to the merged Castiron orchestration commit from openai/openai#1160100openai/openaicheckout and the narrowly scopedopenai-rubyplusopenai-ruby-internalpromotionmain, the protectedcastiron-promotionenvironment, andCASTIRON_PROMOTION_ENABLED=truePromotion remains disabled. Before enabling:
castiron-promotionenvironment, restrict it tomain, requiresdks-team, and prevent self-reviewCASTIRON_CONTAINER_URI,CASTIRON_AZURE_CLIENT_ID, andCASTIRON_AZURE_TENANT_IDOPENAI_SDKS_APP_PRIVATE_KEYin the protected environmentCASTIRON_PROMOTION_ENABLED=trueonly for the controlled first promotionValidation
actionlint v1.7.7 .github/workflows/castiron-promote.yml