Skip to content

Fix release environment ref evaluation - #245

Merged
maxistar merged 1 commit into
masterfrom
codex/fix-release-environment-ref
Oct 3, 2026
Merged

maxistar merged 1 commit into
masterfrom
codex/fix-release-environment-ref

Conversation

@maxistar

@maxistar maxistar commented Oct 3, 2026

Copy link
Copy Markdown
Owner

Summary

  • run the post-merge orchestrator in the trusted base context
  • keep the existing merged-only release/hotfix guard and exact merge-commit checkout
  • test the event and required-check condition explicitly

Why

The first v1.31.2 automatic run was rejected before executing any step because a pull_request run deploys as refs/pull/244/merge, which is correctly excluded by the release environment policy. pull_request_target evaluates the already-merged event against master while the job-level guard still rejects unmerged and non-release PRs.

Validation

  • 38 release tooling/workflow/protection tests pass
  • all workflow YAML parses successfully
  • v1.31.2 completed successfully through the documented manual recovery path

@maxistar
maxistar merged commit 462c924 into master Oct 3, 2026
2 of 4 checks passed
@maxistar
maxistar deleted the codex/fix-release-environment-ref branch October 3, 2026 17:11

@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: cdf0e44277

ℹ️ 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".

pull_request:
# Use the trusted base ref so release/production environment policies evaluate
# this post-merge run as master rather than refs/pull/<number>/merge.
pull_request_target:

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 Allow the new event before GitHub begins blocking it

Because TextPad is public, this automatic release path will stop queuing after November 2, 2026 if the repository remains under GitHub's default workflow-execution policy, which will block pull_request_target; the repository's canonical protection configuration and audit currently do not configure or verify an explicit event-policy exception. Add and audit an allow policy for this event, or use a trusted trigger that is not subject to the block, so merging a release PR continues to initiate publication. See GitHub's workflow execution policy documentation.

Useful? React with 👍 / 👎.

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