Skip to content

[github-actions] Bump actions/checkout Version from v6 to v7 - #148

Merged
hayat01sh1da merged 1 commit into
masterfrom
hayat01sh1da/github-actions/bump-checkout-action-version-from-v6-to-v7
Jul 13, 2026
Merged

[github-actions] Bump actions/checkout Version from v6 to v7#148
hayat01sh1da merged 1 commit into
masterfrom
hayat01sh1da/github-actions/bump-checkout-action-version-from-v6-to-v7

Conversation

@hayat01sh1da

Copy link
Copy Markdown
Owner

1. Overview

The primary difference between actions/checkout@v6 and actions/checkout@v7 is a critical security enforcement that blocks untrusted code execution from fork pull requests by default.

2. Key Differences Overview

  • Fork Pull Request Protection (Breaking Change): v7 refuses to check out fork pull request code when a workflow is triggered by pull_request_target or workflow_run. This stops "pwn request" supply-chain attacks, where malicious actors use a fork PR to run unauthorized code with your base repository's elevated GITHUB_TOKEN and secrets.
  • New Configuration Input: v7 introduces the allow-unsafe-pr-checkout flag. You must explicitly set this to true if your workflow deliberately requires checking out untrusted code from a fork under privileged triggers.
  • Under-the-Hood Migration: v7 shifts the entire action to ECMAScript Modules (ESM) to accommodate newer @actions/* internal package requirements.
  • Dependency & Security Patches: v7 includes major direct and transitive dependency updates to remediate known vulnerabilities.

3. Comparison of Key Features

Feature / Behavior actions/checkout@v6 actions/checkout@v7
** Fork checkouts on pull_request_target** Allowed automatically (Vulnerable to exploit)
New Input: allow-unsafe-pr-checkout Not available Available (Defaults to false)
Internal Module System CommonJS (CJS) ECMAScript Modules (ESM)
Credential Persistence Strategy Saved in $RUNNER_TEMP via includeIf Saved in $RUNNER_TEMP via includeIf

4. References

@hayat01sh1da hayat01sh1da self-assigned this Jul 13, 2026

@hayat01sh1da hayat01sh1da left a comment

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@hayat01sh1da
hayat01sh1da merged commit 847403a into master Jul 13, 2026
15 checks passed
@hayat01sh1da
hayat01sh1da deleted the hayat01sh1da/github-actions/bump-checkout-action-version-from-v6-to-v7 branch July 13, 2026 04:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant