Skip to content

deploy: allow pinned beta source revisions - #3

Merged
sam2tom merged 1 commit into
mainfrom
codex/beta-deploy
Oct 4, 2026
Merged

sam2tom merged 1 commit into
mainfrom
codex/beta-deploy

Conversation

@sam2tom

@sam2tom sam2tom commented Oct 4, 2026

Copy link
Copy Markdown

The production workflow currently rejects every revision outside main, so the fork cannot publish features integrated into beta. Add a main/beta source selector (default main) and validate the pinned revision against the selected branch. Continue dispatching the trusted workflow from main with the existing production environment restriction.

Both choices replace the same Core/Web installation, database and PVC. Beta does not create a second environment. The beta integration ledger records upstream PRs and upgrade requirements; PR MiniMax-AI#297 remains on beta and is not included in this PR.

Validation: actionlint, git diff --check, independent review, and execution of the source guard against a temporary Git repository covering valid main/beta revisions and rejected cross-branch/unrelated revisions, workflow refs and source branches. No production rollout was triggered.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 4, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-04T00:51:59.695779Z ce549ce PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: ce549ce9f9

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

exit 1
fi
case "$SOURCE_BRANCH" in
main|beta) ;;

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Enforce production protections on the selected source branch

When beta has weaker branch protection than main, this allows its commits to bypass the documented main-only production restriction: GitHub matches an environment’s deployment-branch rule against the workflow run’s GITHUB_REF, which remains main here, not against the commit later checked out (GitHub documentation). The build and deploy jobs then execute scripts and the local setup-kubectl action from that beta commit with production registry credentials and the cluster kubeconfig. Require beta to satisfy the same review/protection policy as main, or independently gate the selected SHA before exposing production secrets.

Useful? React with 👍 / 👎.

@sam2tom
sam2tom merged commit 99ce493 into main Oct 4, 2026
23 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant