- If you depend on the previous default allowing unsafe PR target workflows, add `allow-unsafe-pr-checkout: true` in your checkout action configuration after upgrading to v2.8.0.
- Removed implicit unsafe behavior for `pull_request_target` in GitHub Actions; `allow-unsafe-pr-checkout` flag must be explicitly enabled to restore previous functionality.
Full changelog
What's Changed
- [BREAKING] backport
allow-unsafe-pr-checkoutto v2 by @aiqiaoy in https://github.com/actions/checkout/pull/2504 - backport fixes to releases-v2 by @aiqiaoy in https://github.com/actions/checkout/pull/2526
https://github.blog/changelog/2026-06-18-safer-pull_request_target-defaults-for-github-actions-checkout/ for more details about this breaking change
Full Changelog: https://github.com/actions/checkout/compare/v2.7.0...v2.8.0