fix(ci): port workflow hardening follow-ups to dev - #1271
Conversation
|
Caution Review failedThe pull request is closed. ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: ASSERTIVE Plan: Pro Plus Run ID: 📒 Files selected for processing (5)
📝 WalkthroughWalkthroughThe 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. ChangesPull request 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
Possibly related PRs
Suggested labels: Suggested reviewers: ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
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. Comment |
|
✅ Deterministic PR hygiene checks passed. |
⏳ DRAFT
What to do
Automatic draft conversion failed (token cannot change draft status). Please convert this pull request to a draft manually. The required |
Summary
mainin PR fix(ci): promote workflow comment-spam hardening to main - Hotfix #1265 back onto currentdevdev -> mainmerge from restoring the older fix(ci): harden comment-driven review workflows #1255 behavior over the hardenedmainimplementationFollow-up fixes carried back to dev
resolve-prthe single PR-resolution authority and pass its output into the write-capable jobgui-screenshot-waivedfrom durable label-event provenance instead of the current wake-up event sender, failing closed when provenance cannot be establishedScope
Exactly five files differ from current
dev:.github/workflows/enforce-pr-target.yml.github/workflows/pr-hygiene.ymltests/ci-workflows.test.tstests/helpers/enforce-pr-target-harness.tstests/zz-pr-coderabbit-readiness-revalidation.test.tsThe 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:
git diff --check: passThis branch is built directly on the current
devhead and is exactly one commit ahead / zero commits behind.Summary by CodeRabbit
Bug Fixes
Tests