Upgrade guide · actions/checkout v4 toward v7
Review three gates before you merge the checkout upgrade.
Verify the actual runner, identify credential-dependent Git operations, and check what code runs under privileged triggers. Unknown is not a pass.
Especially useful for self-hosted runner maintainers. This is a documentation-based decision aid, not a tested migration patch or certification of compatibility.
1. Verify the runner—not just your application's Node version
Documented fact: checkout v5 introduced the Node.js 24 runtime and requires Actions Runner v2.327.1 or later. Source: “Checkout v5”
Practical recommendation: record the actual runner version for every affected pool before rollout. A workflow's application Node setting is not evidence of the runner version. Treat the documented minimum as a prerequisite, not proof of full v7 compatibility. Unknown is not a pass.
Next action: map each included job to its runner pool and attach runner-version evidence to the review. If a pool cannot be verified, assign an owner to establish it before rollout.
2. Check credential-dependent Git operations
Documented fact: v6 moved persisted credentials from directly inside .git/config to a separate file under $RUNNER_TEMP. The README says ordinary Git fetch/push continue automatically. Authenticated Git commands from a Docker container action require Runner v2.329.0 or later. Source: “Checkout v6”
Practical recommendation: identify that specific Docker-action path before applying the higher minimum. Review custom tooling that assumes credentials are stored in, read from, or otherwise managed through .git/config. Validate relevant authenticated operations in an isolated, least-privilege test; never print or copy credentials as a workaround. Other container setups are not established compatible by this note.
Next action: list the actual authenticated-Git consumers. Distinguish an explicit Docker container action from uninspected scripts or action internals; do not infer a credential problem merely from a container label.
3. Review fork-code trust boundaries
Documented fact: v7 refuses fork pull-request code checkout by default under pull_request_target or workflow_run. The README warns about running fork code in these privileged contexts. Source: “Checkout v7”
Practical recommendation: check both the trigger and what code checkout targets. Do not bypass the safeguard just to restore a green build. Keep untrusted code away from privileged credentials and runner access. An unmet minimum or unresolved trust boundary means investigate first; clearing these gates means ready for a controlled test, not certified compatible.
Next action: record the event and the selected ref together. An absent trigger condition in one job is not a general security verdict.
Turn the checks into a review decision
- Record facts and evidence; keep unresolved conditions marked unknown.
- Assign the next investigation to an owner.
- Plan an isolated test with trusted input, minimal permissions and explicit stop/rollback conditions.
- Record actual run evidence before wider rollout. A proposed test is not a test result.
Want to see the distinction in practice? Read the historical build-job example.
Sources and boundaries
Official checkout README at v7.0.1, opening “What's new” sections for v5, v6 and v7. This is the source for the three documented changes, not a claim that v7.0.1 is the latest release.
Tag-specific links make the readings reproducible but are not immutable commit-SHA citations. Inspect your current workflow and target release before acting. These gates do not cover all changes: ESM/dependencies, OS and GitHub Enterprise Server compatibility, other actions and other jobs need separate review. No claim of tested compatibility, customer results or complete security assurance.
For the selected historical workflow and its distinct scope, see the worked-example source. For update timing, see Dependabot cooldown and PR type.