Skip to content

ci: Allow the request job to fetch fork PR merge commits - #48966

Merged
phlax merged 1 commit into
envoyproxy:mainfrom
phlax:ci-request-checkout-allow-pr
Nov 3, 2026
Merged

phlax merged 1 commit into
envoyproxy:mainfrom
phlax:ci-request-checkout-allow-pr

Conversation

@phlax

@phlax phlax commented Nov 3, 2026

Copy link
Copy Markdown
Member

actions/checkout 7 refuses to fetch a fork PR's head or merge commit in a pull_request_target workflow when the ref matches the event's pull_request.merge_commit_sha or head.sha. The request job fetches the PR's merge commit to read its CI config, which it does on purpose and without executing anything from the checkout, so it has to opt in.

This only bites when the event payload carries merge_commit_sha, which GitHub fills in asynchronously, so most fork PRs have been passing since the toolshed bump to checkout 7.0.1 (#48133) and some fail at the checkout (run 41670586329).

actions/checkout 7 refuses to fetch a fork PR's head or merge commit in
a `pull_request_target` workflow when the ref matches the event's
`pull_request.merge_commit_sha` or `head.sha`. The request job fetches
the PR's merge commit to read its CI config, which it does on purpose
and without executing anything from the checkout, so it has to opt in.

This only bites when the event payload carries `merge_commit_sha`,
which GitHub fills in asynchronously, so most fork PRs have been
passing since the toolshed bump to checkout 7.0.1 (envoyproxy#48133) and some
fail at the checkout (run 41670586329).

Signed-off-by: Ryan Northey <[email protected]>
@phlax
phlax merged commit f219f7e into envoyproxy:main Nov 3, 2026
27 checks passed
phlax added a commit to phlax/envoy that referenced this pull request Nov 11, 2026
…48966)

actions/checkout 7 refuses to fetch a fork PR's head or merge commit in
a `pull_request_target` workflow when the ref matches the event's
`pull_request.merge_commit_sha` or `head.sha`. The request job fetches
the PR's merge commit to read its CI config, which it does on purpose
and without executing anything from the checkout, so it has to opt in.

This only bites when the event payload carries `merge_commit_sha`, which
GitHub fills in asynchronously, so most fork PRs have been passing since
the toolshed bump to checkout 7.0.1 (envoyproxy#48133) and some fail at the
checkout (run 41670586329).

Signed-off-by: Ryan Northey <[email protected]>
phlax added a commit to phlax/envoy that referenced this pull request Nov 11, 2026
…48966)

actions/checkout 7 refuses to fetch a fork PR's head or merge commit in
a `pull_request_target` workflow when the ref matches the event's
`pull_request.merge_commit_sha` or `head.sha`. The request job fetches
the PR's merge commit to read its CI config, which it does on purpose
and without executing anything from the checkout, so it has to opt in.

This only bites when the event payload carries `merge_commit_sha`, which
GitHub fills in asynchronously, so most fork PRs have been passing since
the toolshed bump to checkout 7.0.1 (envoyproxy#48133) and some fail at the
checkout (run 41670586329).

Signed-off-by: Ryan Northey <[email protected]>
phlax added a commit to phlax/envoy that referenced this pull request Nov 11, 2026
…48966)

actions/checkout 7 refuses to fetch a fork PR's head or merge commit in
a `pull_request_target` workflow when the ref matches the event's
`pull_request.merge_commit_sha` or `head.sha`. The request job fetches
the PR's merge commit to read its CI config, which it does on purpose
and without executing anything from the checkout, so it has to opt in.

This only bites when the event payload carries `merge_commit_sha`, which
GitHub fills in asynchronously, so most fork PRs have been passing since
the toolshed bump to checkout 7.0.1 (envoyproxy#48133) and some fail at the
checkout (run 41670586329).

Signed-off-by: Ryan Northey <[email protected]>
phlax added a commit to phlax/envoy that referenced this pull request Nov 12, 2026
…48966)

actions/checkout 7 refuses to fetch a fork PR's head or merge commit in
a `pull_request_target` workflow when the ref matches the event's
`pull_request.merge_commit_sha` or `head.sha`. The request job fetches
the PR's merge commit to read its CI config, which it does on purpose
and without executing anything from the checkout, so it has to opt in.

This only bites when the event payload carries `merge_commit_sha`, which
GitHub fills in asynchronously, so most fork PRs have been passing since
the toolshed bump to checkout 7.0.1 (envoyproxy#48133) and some fail at the
checkout (run 41670586329).

Signed-off-by: Ryan Northey <[email protected]>
phlax added a commit that referenced this pull request Nov 12, 2026
actions/checkout 7 refuses to fetch a fork PR's head or merge commit in
a `pull_request_target` workflow when the ref matches the event's
`pull_request.merge_commit_sha` or `head.sha`. The request job fetches
the PR's merge commit to read its CI config, which it does on purpose
and without executing anything from the checkout, so it has to opt in.

This only bites when the event payload carries `merge_commit_sha`, which
GitHub fills in asynchronously, so most fork PRs have been passing since
the toolshed bump to checkout 7.0.1 (#48133) and some fail at the
checkout (run 41670586329).

Signed-off-by: Ryan Northey <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants