Skip to content

ci: opt into v7 fork-PR checkout so tend-review runs on fork PRs#6038

Merged
max-sixty merged 1 commit into
mainfrom
ci/tend-review-fork-checkout
Jun 24, 2026
Merged

ci: opt into v7 fork-PR checkout so tend-review runs on fork PRs#6038
max-sixty merged 1 commit into
mainfrom
ci/tend-review-fork-checkout

Conversation

@prql-bot

Copy link
Copy Markdown
Collaborator

Problem

tend-review fails at the checkout step for fork PRs (e.g. #6037), turning the review check red before the review ever runs:

##[error]Refusing to check out fork pull request code from a 'pull_request_target' workflow. ... set 'allow-unsafe-pr-checkout: true' on the actions/checkout step.

Root cause

actions/checkout@v7.0.0 (2026-06-18) added PR #2454, a guard that refuses to check out fork-PR code when the trigger is pull_request_target, unless allow-unsafe-pr-checkout: true is set. tend-review.yaml is on: pull_request_target and feeds actions/checkout the fork ref directly, so every fork PR trips it. (Same-repo PRs are unaffected; tend-mention is unaffected because it checks out the base repo and then gh pr checkouts the branch — the action never sees a fork ref.)

The pin here is actions/checkout@v7 (Dependabot bumped it from the v6 that tend 0.1.6 generates), but the matching allow-unsafe-pr-checkout flag was not added, so the workflow is in the broken middle state.

Fix

Add allow-unsafe-pr-checkout: true to the tend-review checkout step. This mirrors the upstream tend resolution: issue max-sixty/tend#723 → the maintainer chose this option → max-sixty/tend#725 merged it, shipped in tend 0.1.7 (this repo is pinned to 0.1.6).

This is a focused stopgap on the generated file so fork-PR reviews work again immediately; it will be superseded — with identical content for this line — by the next tend 0.1.7 workflow regen.

🤖 Generated with Claude Code

actions/checkout@v7 refuses fork-PR checkout under pull_request_target
unless allow-unsafe-pr-checkout: true is set. Mirrors the upstream tend
fix (max-sixty/tend#725, in 0.1.7).

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@max-sixty max-sixty merged commit fefeab2 into main Jun 24, 2026
41 checks passed
@max-sixty max-sixty deleted the ci/tend-review-fork-checkout branch June 24, 2026 20:22
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.

2 participants