Repository navigation
Let format-suggest check out fork pull requests again - #3027
Open
roaldarbol wants to merge 1 commit into
Open
roaldarbol wants to merge 1 commit into
roaldarbol wants to merge 1 commit into
Conversation
`actions/checkout` now refuses to check out fork pull request code in a `pull_request_target` workflow unless `allow-unsafe-pr-checkout: true` is set, so `format-suggest` has failed on every fork PR since 2026-07-31. This opts in and bumps to `actions/checkout@v7`, matching the `posit-dev/setup-air` example (posit-dev/setup-air#100). The fork's code is only read by `air format`, never executed. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
format-suggestfails on every fork PR (since 2026-07-31) with "Refusing to check out fork pull request code from a 'pull_request_target' workflow", becauseactions/checkoutnow requiresallow-unsafe-pr-checkout: truefor this. This opts in and bumps toactions/checkout@v7, matching theposit-dev/setup-airexample (posit-dev/setup-air#100) and r-lib/httr2#872. As the workflow's own comment explains, the fork's code is only read byair format, never executed. Note that this PR's ownformat-suggestcheck will still fail, sincepull_request_targetruns the workflow frommain.This PR was made with AI assistance (Claude Code); I have reviewed the changes.