Repository navigation
fix(workflow): bootstrap trusted issue validation without blocking migration - #4
Merged
Merged
Conversation
abruption
marked this pull request as ready for review
November 13, 2026 03:16
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
abruption
marked this pull request as draft
November 13, 2026 03:24
abruption
marked this pull request as ready for review
November 13, 2026 04:00
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.
Closes #3
Problem and result
Codex review of PR #2 found that a PR could alter its own
pull_requestpolicy workflow. Replacing that trigger directly withpull_request_targetalso blocked this migration PR: the trusted workflow does not exist on main yet, so the requiredIssue-first PRstatus was never emitted.Stage the migration instead:
pr-policy.ymlandIssue-first PRstatus unchanged so this PR can be checked under the current protection.trusted-pr-policy.yml, triggered bypull_request_target, with a distinctTrusted Issue-first PRstatus.Review: #2 (comment)
GitHub reference: https://docs.github.com/en/actions/reference/workflows-and-actions/events-that-trigger-workflows#pull_request_target
Validation
Deliberate migration limit
This bootstrap does not complete the security migration. The legacy check remains until phase 2, tracked in #7. After this PR is reviewed and merged, observe a passing trusted check from main on another PR, require the distinct trusted check without weakening
verify/PR protection, and retire the legacy workflow through a separate Draft PR. The legacy required context must only be retired once the trusted check is active and passing.The new trusted check is not expected to run on this bootstrap PR because it is not on main yet. It is not required at this stage. Existing ruleset settings have not been weakened or bypassed.
Review and merge
Converted back to Draft for this revised design. Owner checks and marks Ready; Codex automated review must complete and findings must be addressed. No automatic merge, Ready conversion, or merge without explicit owner approval.