Skip to content

fix(workflow): bootstrap trusted issue validation without blocking migration - #4

Merged
abruption merged 2 commits into
mainfrom
fix/3-trusted-pr-policy
Nov 13, 2026
Merged

abruption merged 2 commits into
mainfrom
fix/3-trusted-pr-policy

Conversation

@abruption

@abruption abruption commented Nov 13, 2026 •

Copy link
Copy Markdown
Owner

Closes #3

Problem and result

Codex review of PR #2 found that a PR could alter its own pull_request policy workflow. Replacing that trigger directly with pull_request_target also blocked this migration PR: the trusted workflow does not exist on main yet, so the required Issue-first PR status was never emitted.

Stage the migration instead:

  • Keep the existing pr-policy.yml and Issue-first PR status unchanged so this PR can be checked under the current protection.
  • Add a separate metadata-only trusted-pr-policy.yml, triggered by pull_request_target, with a distinct Trusted Issue-first PR status.
  • Keep read-only permissions and no PR checkout, dependency installation, or PR-code execution in the trusted workflow.
  • Test both the trusted boundary and preservation of the legacy check during migration, as well as valid/invalid Issue metadata.
  • Document Draft → owner Ready conversion → Codex review → human or explicitly approved merge in the PR template.

Review: #2 (comment)
GitHub reference: https://docs.github.com/en/actions/reference/workflows-and-actions/events-that-trigger-workflows#pull_request_target

Validation

  • npm run typecheck
  • npm run build (Worker dry-run only)
  • npm test: 127 passed
  • git diff --check
  • Updated GitHub CI and Issue-first PR results pending after push

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.

@abruption
abruption marked this pull request as ready for review November 13, 2026 03:16
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 13, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

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

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-13T04:01:44.066167Z d940b53 Draft marked ready
🔒 Security Review ✅ Completed 2026-11-13T04:02:46.061676Z d940b53 Draft marked ready
ℹ️ 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.

@abruption abruption changed the title fix(workflow): validate issue policy from trusted base fix(workflow): bootstrap trusted issue validation without blocking migration Nov 13, 2026
@abruption
abruption marked this pull request as ready for review November 13, 2026 04:00
@abruption
abruption merged commit 96bc9e0 into main Nov 13, 2026
6 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.

fix(workflow): validate issue policy from the trusted base revision

1 participant