Repository navigation
chore: bump actions/checkout from 6 to 7 - #3131
Conversation
worktrunk-bot
left a comment
There was a problem hiding this comment.
The mechanical bump is complete — every actions/checkout@v6 reference across the workflows is updated. But checkout v7.0.0 ships one behavioral change worth a maintainer's eyes before merge, so flagging rather than approving.
v7's only breaking change (actions/checkout#2454) refuses to check out fork-PR code from pull_request_target and workflow_run workflows. From the v7 source (src/unsafe-pr-checkout-helper.ts), assertSafePrCheckout throws when the event is pull_request_target/workflow_run, the PR head repo differs from the base repo (i.e. a fork), and the resolved ref matches ^refs/pull/[0-9]+/(head|merge)$ (or the commit/repo otherwise points at the fork head). Opt-out is allow-unsafe-pr-checkout: true.
I walked each affected workflow:
tend-review.yaml— breaks on fork PRs. It runs onpull_request_targetand checks outref: ${{ steps.pr_ref.outputs.ref }}, which isrefs/pull/<n>/merge(or/head). For a PR from a fork, that's exactly the blocked shape → checkout throwsRefusing to check out fork pull request code…and the whole review job fails before tend ever runs. Same-repo PRs (Dependabot, internal branches — including this PR) are unaffected because the head repo equals the base repo, so the bump's own CI stays green and the regression only surfaces on the next external contributor's PR.tend-ci-fix.yaml—workflow_run, but checks outref: main(not a PR ref, not the fork head sha), so the guard returns early. Safe.tend-mention.yaml— triggers areissues/issue_comment/pull_request_review/pull_request_review_comment, none of which arepull_request_targetorworkflow_run, so the guard doesn't apply. Safe.- All other tend workflows (
tend-nightly,tend-notifications,tend-review-runs,tend-triage,tend-weekly) are schedule/issues-triggered and check outmain.ci.yaml/release.yaml/publish-docs.yamlrun onpull_request/push/tags, not the two blocked events. Safe.
So the practical effect: merging this silently disables automated review of fork PRs.
Two things make this a maintainer call rather than something I'd push a fix for:
- The fix — adding
allow-unsafe-pr-checkout: trueto thetend-reviewcheckout — re-enables precisely the "pwn request" exposure v7 added the guard against: that job runs withTEND_BOT_TOKEN,CLAUDE_CODE_OAUTH_TOKEN, andcontents: write/pull-requests: writewhile executing fork-controlled code. Whether that tradeoff is acceptable (vs. restructuring the review to fetch fork code into an unprivileged context) is a security decision, not a mechanical one. tend-review.yamlcarries a "Generated by tend 0.1.6 … will be overwritten on regeneration" header, so the durable fix likely belongs upstream in the tend-ci-runner workflow templates rather than as a hand-edit here.
If worktrunk doesn't currently rely on tend reviewing fork PRs, this is fine to merge as-is and the point is moot.
Bumps [actions/checkout](https://github.com/actions/checkout) from 6 to 7. - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md) - [Commits](actions/checkout@v6...v7) --- updated-dependencies: - dependency-name: actions/checkout dependency-version: '7' dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <[email protected]>
926a9d3 to
a3080ef
Compare
actions/checkout@v7 refuses fork-PR checkout under pull_request_target, breaking automated review for every fork PR (e.g. #3172 got zero review). v6 has no guard and matches what the tend 0.1.6 generator emits; the v7 in the committed file was Dependabot drift (#3131). Durable fix is upstream (max-sixty/tend#723). Co-Authored-By: Claude Opus 4.8 <[email protected]>
Bumps actions/checkout from 6 to 7.
Release notes
Sourced from actions/checkout's releases.
Changelog
Sourced from actions/checkout's changelog.
... (truncated)
Commits
9c091bbupdate error wording (#2467)1044a6dgetting ready for checkout v7 release (#2464)f028218Bump the minor-npm-dependencies group across 1 directory with 3 updates (#2462)d914b26upgrade module to esm and update dependencies (#2463)537c7efBump@actions/coreand@actions/tool-cacheand Remove uuid (#2459)130a169Bump js-yaml from 4.1.0 to 4.2.0 (#2461)7d09575Bump flatted from 3.3.1 to 3.4.2 (#2460)0f9f3aaBump actions/publish-immutable-action (#2458)f9e715ablock checking out fork pr for pull_request_target and workflow_run (#2454)