Skip to content

Fix fork PR checkout in pull_request_target workflow - #259

Merged
tmimmanuel merged 1 commit into
mainfrom
dev-fix-fork-pr-checkout
Jul 30, 2026
Merged

Fix fork PR checkout in pull_request_target workflow#259
tmimmanuel merged 1 commit into
mainfrom
dev-fix-fork-pr-checkout

Conversation

@tmimmanuel

Copy link
Copy Markdown
Collaborator

Adds allow-unsafe-pr-checkout: true to both Checkout PR contents steps in pr-automation.yml.

Required because the workflow uses pull_request_target (which runs with the base repo's secrets and token). Without this opt-in, actions/checkout@v4 refuses to fetch fork PR code, causing CI failures like #258.

Adds allow-unsafe-pr-checkout: true to both Checkout PR contents steps
in pr-automation.yml. Required when using pull_request_target with fork
PRs (miner submissions), otherwise actions/checkout@v4 refuses to fetch
the fork's code in the trusted workflow context.
@tmimmanuel
tmimmanuel merged commit 7ce3d3f into main Jul 30, 2026
6 checks passed
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.

1 participant