GeezerVison is showing github.com — fix(ci): port workflow hardening follow-ups to dev by Wibias · Pull Request #1271 · lidge-jun/opencodex
Conversation
Wibias
commented
Aug 8, 2026
•
edited by coderabbitai
Bot
Loading
Uh oh!
There was an error while loading. Please reload this page.
Summary
Follow-up fixes carried back to dev
- authenticate the CodeRabbit status producer before allowing privileged revalidation
- keep the shared gate/hygiene concurrency lock PR-stable across head changes
- make
resolve-pr the single PR-resolution authority and pass its output into the write-capable job
- authorize
gui-screenshot-waived from durable label-event provenance instead of the current wake-up event sender, failing closed when provenance cannot be established
- explicitly scope the write job permissions and update the workflow harness/regressions to cover the hardened contracts without brittle full-expression matching
Scope
Exactly five files differ from current dev:
.github/workflows/enforce-pr-target.yml
.github/workflows/pr-hygiene.yml
tests/ci-workflows.test.ts
tests/helpers/enforce-pr-target-harness.ts
tests/zz-pr-coderabbit-readiness-revalidation.test.ts
The other five files originally promoted from #1255 are unchanged between #1255-final and #1265-final and are deliberately not included here.
Validation
The exact final versions being ported are the versions validated on #1265:
- focused workflow suite: 128/128 pass
- workflow helper suite: 451/451 pass
- typecheck: pass
- privacy scan: pass
git diff --check: pass
This branch is built directly on the current dev head and is exactly one commit ahead / zero commits behind.
Summary by CodeRabbit
-
Bug Fixes
- Improved pull request validation to reliably identify the correct open pull request across revisions.
- Added safeguards to reject unverified status events and unauthorized screenshot waiver labels.
- Prevented stale or incomplete status information from incorrectly marking checks as ready.
- Improved workflow coordination so updates for the same pull request are processed consistently.
-
Tests
- Expanded coverage for event validation, maintainer authorization, pull request resolution, and fail-closed behavior.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
coderabbitai
Bot
commented
Aug 8, 2026
•
edited
Loading
Uh oh!
There was an error while loading. Please reload this page.
|

Caution
Review failed
The pull request is closed.
ℹ️ Recent review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: ASSERTIVE
Plan: Pro Plus
Run ID: a8b91a02-3289-41e3-8820-565485c291f7
📥 Commits
Reviewing files that changed from the base of the PR and between fdc47db and f7448e7.
📒 Files selected for processing (5)
.github/workflows/enforce-pr-target.yml
.github/workflows/pr-hygiene.yml
tests/ci-workflows.test.ts
tests/helpers/enforce-pr-target-harness.ts
tests/zz-pr-coderabbit-readiness-revalidation.test.ts
📝 Walkthrough
Walkthrough
The PR separates trusted PR resolution from write-capable enforcement, changes concurrency keys to PR numbers, verifies maintainer-applied screenshot waivers, and updates workflow tests and harness fixtures for resolver outputs and status events.
Changes
Pull request enforcement
| Layer / File(s) |
Summary |
Resolve PR identity before enforcement .github/workflows/enforce-pr-target.yml:28-220, tests/ci-workflows.test.ts:830-1133, tests/zz-pr-coderabbit-readiness-revalidation.test.ts:45-78 |
A read-only resolve-pr job validates CodeRabbit status events and resolves one open PR by current head. enforce-target consumes RESOLVED_PULL_NUMBER and fails closed when the identity is invalid or absent. |
Authorize waivers and serialize PR state .github/workflows/enforce-pr-target.yml:543-654, .github/workflows/pr-hygiene.yml:14-17, tests/ci-workflows.test.ts:2678-2785 |
Screenshot waivers require a label event from a listed maintainer. Checklist staleness handling excludes status events without a head SHA. Hygiene concurrency uses the PR number. |
Model resolver inputs and validate workflows tests/helpers/enforce-pr-target-harness.ts:66-1110, tests/zz-pr-coderabbit-readiness-revalidation.test.ts:10-78 |
The harness supports issue-event fixtures, sender identity, pagination, resolved PR numbers, and step environments. Tests cover resolver guards, authorized and unauthorized waivers, and status-event enforcement. |
Estimated code review effort: 4 (Complex) | ~45 minutes
Sequence Diagram(s)
sequenceDiagram
participant StatusEvent
participant resolve-pr
participant GitHubAPI
participant enforce-target
StatusEvent->>resolve-pr: trusted status metadata and SHA
resolve-pr->>GitHubAPI: resolve one open PR at the current head
GitHubAPI-->>resolve-pr: pull request number
resolve-pr->>enforce-target: RESOLVED_PULL_NUMBER
enforce-target->>GitHubAPI: perform PR enforcement
Loading
Possibly related PRs
Suggested labels: chore
Suggested reviewers: lidge-jun, ingwannu
✨ Finishing Touches
📝 Generate docstrings
- Create stacked PR
- Commit on current branch
🧪 Generate unit tests (beta)
- Create PR with unit tests
- Commit unit tests in branch
fix/workflow-hardening-followups-dev
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.
❤️ Share
Comment @coderabbitai help to get the list of available commands.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
|
✅ Deterministic PR hygiene checks passed.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
⏳ DRAFT
What to do
- Add a screenshot of the UI change to the PR description.
Automatic draft conversion failed (token cannot change draft status). Please convert this pull request to a draft manually. The required enforce-target check will keep failing until every issue above is resolved.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
agentHits
pushed a commit
to agentHits/opencodex
that referenced
this pull request
Sep 17, 2026
…ng-followups-dev
fix(ci): port workflow hardening follow-ups to dev
Reviewers
lidge-jun
Awaiting requested review from lidge-jun
lidge-jun is a code owner
Ingwannu
Awaiting requested review from Ingwannu
Ingwannu is a code owner
Uh oh!
There was an error while loading. Please reload this page.
Assignees
No one assigned
Labels
bug
Something isn't working
Milestone
No milestone
Development
Successfully merging this pull request may close these issues.
Uh oh!
There was an error while loading. Please reload this page.
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.
|