fix(ci): allow fork PR checkout in tags.yaml pull_request_target workflow - #2275
Merged
riaankleinhans merged 1 commit intoAug 12, 2026
Merged
Conversation
…flow actions/checkout now refuses to check out fork PR heads under pull_request_target by default. This job never executes fork-supplied code (it resets to origin/main before running the generator, only carrying over tags.yaml as data), so it's safe to opt back in. Signed-off-by: chadmcrowell <chadmcrowell@gmail.com>
riaankleinhans
approved these changes
Aug 12, 2026
salaboy
reviewed
Aug 13, 2026
salaboy
left a comment
There was a problem hiding this comment.
I trust @chadmcrowell changes here and he is blocked by this
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.
Summary
actions/checkoutnow refuses by default to check out a fork PR's head ref inside apull_request_targetworkflow (the "pwn request" guard).tags_yaml_fork_pr_processing.yamlfor any fork PR that touchestags.yaml, e.g. fix links to youtube and meeting notes for TAG OpRes #2274.origin/mainand only carries overtags.yaml(data, not code) before runninggenerator/readme_app.gofrommain.Fix
Add
allow-unsafe-pr-checkout: trueto the checkout step, per https://gh.io/securely-using-pull_request_target.Test plan
mainGenerate README on Tags Change (Forked PR)workflow runs successfully on fix links to youtube and meeting notes for TAG OpRes #2274 after a re-run/push