software engineering4 min read

Safer pull_request_target defaults for GitHub Actions checkout

9 similar posts
  • GitHub Actions
  • actions/checkout
  • Dependabot

AI Summary

GitHub is updating actions/checkout to version 7 to prevent common 'pwn request' security vulnerabilities. The new default behavior refuses to fetch fork pull request code in pull_request_target and workflow_run workflows when insecure inputs are used, mitigating a major supply-chain vector. Backports will affect floating major tags, while workflows using specific SHAs or minor versions remain unaffected until upgraded. An explicit opt-out flag is provided for legitimate use cases.

Key Takeaways

  • Actions/checkout v7 introduces automated checks against insecure fork pull request checkouts.
  • Backports apply to supported major versions for floating tags on July 20, 2026.
  • Workflows requiring elevated trust can opt out using the allow-unsafe-pr-checkout input.

Why it matters

This security update directly addresses a widespread supply-chain vector in GitHub Actions by changing defaults to block accidental privilege escalation from fork pull requests.

Conversation0

What would you add from your experience?

Checking your session…

Every good conversation starts with one perspective.