ci: add Castiron promotion workflow#3509
Closed
HAYDEN-OAI wants to merge 5 commits into
Closed
Conversation
HAYDEN-OAI
force-pushed
the
dev/hayden/castiron-promotion-workflow
branch
from
July 15, 2026 23:03
4eec60f to
547a858
Compare
HAYDEN-OAI
force-pushed
the
dev/hayden/castiron-promotion-workflow
branch
from
July 16, 2026 21:38
547a858 to
3daf35c
Compare
HAYDEN-OAI
force-pushed
the
dev/hayden/castiron-promotion-workflow
branch
from
July 16, 2026 22:09
3daf35c to
ee74a44
Compare
HAYDEN-OAI
force-pushed
the
dev/hayden/castiron-promotion-workflow
branch
from
July 17, 2026 19:55
ee74a44 to
0ce3b8d
Compare
There was a problem hiding this comment.
Pull request overview
Adds a default-off, manually triggered GitHub Actions workflow to promote an already-approved Castiron candidate into a draft PR against this repo’s main, delegating most logic to a pinned writer in openai/openai and relying on a protected environment plus an explicit repo/org enablement gate.
Changes:
- Introduces a
workflow_dispatch-only promotion workflow guarded byCASTIRON_PROMOTION_ENABLED,mainbranch, and repository checks. - Uses a protected
castiron-promotionenvironment plus Azure OIDC login and two separately minted GitHub App tokens (read-only for monorepo checkout; write-scoped for PR creation). - Pins all third-party actions and pins the external writer to a specific
openai/openaicommit.
💡 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 Python Castiron candidates into a publicmaindraft PRopenai-python, and invokes the pinned shared writer from openai/openai#1160100openai-sdksfor a separate checkout token scoped only toopenai/openaiwith Contents read; the later SDK write token remains separately minted and scoped only toopenai-pythonplusopenai-python-internalcastiron-promotionenvironment, and a repository/org-levelCASTIRON_PROMOTION_ENABLED=truegateThis remains intentionally inert: the writer is pinned to merged Castiron orchestration commit
d2dbbaefab9ec4c7513abe593015a9f97597c18c. The repository already hasCASTIRON_PROMOTION_ENABLED=falseplus acastiron-promotionenvironment restricted tomain, requiringsdks-team, and preventing self-review.Before enabling:
CASTIRON_CONTAINER_URI,CASTIRON_AZURE_CLIENT_ID, andCASTIRON_AZURE_TENANT_IDafter openai/openai#1143332 is appliedOPENAI_SDKS_APP_PRIVATE_KEYin the protected environment and set repository/org variableCASTIRON_PROMOTION_ENABLED=trueonly for the controlled first promotionValidation
actionlint v1.7.7 .github/workflows/castiron-promote.yml