Repository navigation
ci: Allow the request job to fetch fork PR merge commits - #48966
Merged
Merged
Conversation
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]>
jwendell
approved these changes
Nov 3, 2026
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]>
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.
actions/checkout 7 refuses to fetch a fork PR's head or merge commit in a
pull_request_targetworkflow when the ref matches the event'spull_request.merge_commit_shaorhead.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).