fix(#2504): allow checkout@v7 to check out fork PR code in e2e workflow#2505
fix(#2504): allow checkout@v7 to check out fork PR code in e2e workflow#2505ralphbean wants to merge 1 commit into
Conversation
checkout@v7 added a safety check that blocks fork PR checkouts in pull_request_target workflows by default. The e2e workflow's gate job already requires the ok-to-test label from a maintainer before the e2e job runs, so opting in with allow-unsafe-pr-checkout is safe here. Assisted-by: Claude Opus 4.6 <noreply@anthropic.com> Signed-off-by: Ralph Bean <rbean@redhat.com>
|
Duplicate of #2503 — @ifireball got there first. |
PR Summary by QodoAllow fork PR checkout in e2e workflow with actions/checkout@v7 Description
Diagram
High-Level Assessment
Files changed (1)
|
Code Review by Qodo
1. Misleading safety comment
|
|
🤖 Finished Review · ✅ Success · Started 2:13 PM UTC · Completed 2:24 PM UTC |
|
Review skipped — this PR is already closed. The Posted by fullsend pre-review check |
|
🤖 Finished Retro · ✅ Success · Started 2:14 PM UTC · Completed 2:26 PM UTC |
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
|
Review skipped — this PR is already closed. The Posted by fullsend post-review check |
Retro: PR #2505What happened: Issue #2504 was filed by ralphbean at 14:00 UTC documenting a regression from the checkout v4→v7 upgrade (PR #2457) that broke e2e CI for fork PRs. The triage agent ran successfully (~2 min), correctly identified the root cause and recommended fix, and applied Key observations:
No new proposals filed — all improvement opportunities are already tracked by existing open issues. The triage agent performed well (correct root cause, good labels). The code agent's implementation was correct; only the delivery mechanism failed due to a known permission gap. |
Summary
actions/checkoutto v7, which blocks fork PR checkouts inpull_request_targetworkflows by defaultok-to-testlabel from a maintainer before the e2e job runs, so opting in withallow-unsafe-pr-checkout: trueis safeFixes #2504
Test plan