Update untrusted_checkout_exec to respect actions/checkout new behavior - #450
Open
Talgarr wants to merge 5 commits into
Open
Update untrusted_checkout_exec to respect actions/checkout new behavior#450Talgarr wants to merge 5 commits into
Talgarr wants to merge 5 commits into
Conversation
Talgarr
marked this pull request as ready for review
August 27, 2026 15:11
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.
Reimplement this #442
Summary
Update
untrusted_checkout_execto account for the new fork pull request protection in supportedactions/checkoutreleases.Poutine now suppresses findings when
actions/checkoutitself blocks untrusted fork code from being checked out. This reduces false positives without suppressing workflows that opt out of the protection or remain exposed through other events.Background
GitHub introduced safer defaults for
actions/checkoutonpull_request_targetand pull-request-originatedworkflow_runevents:https://github.blog/changelog/2026-06-18-safer-pull_request_target-defaults-for-github-actions-checkout/
Supported releases now refuse to check out fork pull request code unless
allow-unsafe-pr-checkout: trueis explicitly configured.Behavior
A finding is suppressed when all of the following apply:
allow-unsafe-pr-checkoutis not enabled or dynamically configured.workflow_runtrigger only references pull-request workflows.Findings remain for:
actions/checkout@v1allow-unsafe-pr-checkout: trueallow-unsafe-pr-checkoutvaluesworkflow_runtriggers with non-PR upstream workflowsExact commit references are classified using a frozen set derived from the official
actions/checkoutcommit graph. The dataset records its provenance, guard-introduction commits, entry count, and checksum.