Skip to content

Allow fork-PR checkout in pull_request_target workflows#1446

Open
JMJBILLINGS wants to merge 1 commit into
Domain-Connect:masterfrom
JMJBILLINGS:fix-pr-target-checkout
Open

Allow fork-PR checkout in pull_request_target workflows#1446
JMJBILLINGS wants to merge 1 commit into
Domain-Connect:masterfrom
JMJBILLINGS:fix-pr-target-checkout

Conversation

@JMJBILLINGS

Copy link
Copy Markdown

Fixes #1445.

All five pull_request_target workflows currently fail at the actions/checkout step for every fork PR — the Actions runner now refuses fork-PR checkout in pull_request_target workflows unless the checkout step sets allow-unsafe-pr-checkout: true (see any recent fork PR's run annotations, e.g. #1444).

This adds that one line to the checkout step in each of the five workflows. Risk note per https://gh.io/securely-using-pull_request_target: these workflows run base-repo tooling (dc-template-linter, check-jsonschema, .github/scripts) against changed root-level JSON files and do not execute contributed code, so the opt-in appears safe here — but please review.

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.

CI broken for all fork PRs — actions/checkout refuses pull_request_target checkout

1 participant