Skip to content

ci(policy): prepare a scoped trusted-workflow event exception - #40

Merged
abruption merged 1 commit into
mainfrom
ci/38-trusted-event-policy
Nov 16, 2026
Merged

abruption merged 1 commit into
mainfrom
ci/38-trusted-event-policy

Conversation

@abruption

Copy link
Copy Markdown
Owner

Prepare a narrowly scoped repository Actions event policy for the required trusted Issue-first workflow. Current policy Insights reports pull_request_target as Evaluate / Would block, while GitHub plans a November 16 UTC brownout and December 2 default enforcement.

Closes #38

Operational application and verification are tracked separately in #39. This PR does not close that issue.

Changes:

  • An active policy payload targeting only .github/workflows/trusted-pr-policy.yml and allowing only pull_request_target; no all-workflow glob or other event.
  • An administrator runbook covering explicit live approval, reviewed immutable commit/hash input, parent-policy and protection checks, single-create/unknown-outcome reconciliation, actual Insights/run verification, and scoped rollback.
  • An offline security-boundary contract test preventing policy scope/event/top-level-key expansion. This is not proof of live API schema acceptance or enforcement.

Workflow code, token permissions, required checks, review rules and bypass settings are unchanged. There is no privileged apply workflow. Merging source does not apply a GitHub setting. If enforcement blocks source merge, an owner may separately approve the reviewed PR-head payload before merge without bypassing protection.

Validation: typecheck, 12 local policy tests, JSON parsing, Prettier and diff checks pass. Independent CLI reviews completed before publication: Claude Code 2.1.325 / claude-opus-5-5 and Antigravity 1.5.9 / gemini-4-argon-medium, same frozen final input, parallel fresh sessions. Both final reviews found no required changes. Initial procedural findings were handled through the separate operational issue, approved PR-head recovery path, immutable payload input, protection-detail reads and explicit path-only boundary. Current live policy remains unapplied; actual acceptance and post-apply enforcement belong to #39. No settings write, status fabrication/rerun, npm publication, or Worker deployment is part of this PR preparation.

References:

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 16, 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-16T02:07:57.362734Z b6ea84b Draft marked ready
🔒 Security Review ✅ Completed 2026-11-16T02:08:49.851964Z b6ea84b 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 merged commit 3a19ec7 into main Nov 16, 2026
8 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.

ci(policy): explicitly allow the trusted metadata workflow event

1 participant