ci(workflow-templates): bump checkout to v5 (Node 24)#14
Conversation
GitHub is deprecating the Node.js 20 runtime for JavaScript actions (forced to Node 24 on 2026-06-16, removed 2026-09-16). actions/checkout@v3 runs on the even-older node16. These org starter workflows are copied into repos via the "New workflow" UI, so bump them at the source: - actions/checkout v3 -> v5 (dflook/terraform-fmt-check is a Docker action, unaffected.) Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
|
Complex PR? Review this PR in Change Stack to move by importance, not file order. 📝 WalkthroughWalkthroughThis PR updates the GitHub Actions checkout action from v3 to v5 in two workflow template files: apella-org.yml and apella-terraform-format-check.yml. Both changes upgrade the 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@workflow-templates/apella-org.yml`:
- Line 14: The workflow upgrades actions/checkout to actions/checkout@v5 which
requires Node.js 24 and GitHub Actions runner >= 2.327.1; either revert to
actions/checkout@v3 or ensure all runners (especially self-hosted) are upgraded
to runner version 2.327.1+ and support Node 24 before merging. Locate the
actions/checkout@v5 entry in the workflow template and: if you cannot guarantee
runner upgrades, change it back to actions/checkout@v3; if you will upgrade
runners, add a comment or a check step documenting the required runner version
and update your runner provisioning/maintenance scripts to enforce 2.327.1+.
Ensure any CI admin docs or onboarding notes are updated to reflect the new
runner requirement.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Organization UI
Review profile: CHILL
Plan: Pro
Run ID: 0d84268e-3a15-40da-9a67-3336916355d1
📒 Files selected for processing (2)
workflow-templates/apella-org.ymlworkflow-templates/apella-terraform-format-check.yml
|
|
||
| steps: | ||
| - uses: actions/checkout@v3 | ||
| - uses: actions/checkout@v5 |
There was a problem hiding this comment.
🧩 Analysis chain
🌐 Web query:
What version of Node.js does actions/checkout@v5 use and are there breaking changes from v3 to v5?
💡 Result:
The actions/checkout@v5 action uses Node.js 24 [1][2]. Regarding breaking changes between v3 and v5: The primary technical change introduced in v5 is the upgrade of the underlying Node.js runtime to version 24 [1][3]. Because this is a major version release, it includes a stricter requirement for the Actions Runner version [1][4]. To use actions/checkout@v5, your GitHub Actions runner must be updated to version 2.327.1 or newer [1][4]. While the core functionality of the action remains consistent for most standard repository checkout use cases, users should ensure their runner environments meet this minimum version requirement to avoid execution failures [1][5]. As is standard with major version bumps in GitHub Actions, it is recommended to review your workflow logs after updating to ensure compatibility with your specific runner infrastructure [5].
Citations:
- 1: https://github.com/actions/checkout/releases/tag/v5.0.0
- 2: https://github.com/actions/checkout/blob/main/CHANGELOG.md
- 3: https://github.com/actions/checkout/blob/v6.0.2/CHANGELOG.md
- 4: Update README to include Node.js 24 support details and requirements actions/checkout#2248
- 5: Prepare v5.0.0 release actions/checkout#2238
Ensure actions/checkout@v5 is compatible with the target runners
workflow-templates/apella-org.yml upgrades actions/checkout from v3 to v5; v5 runs on Node.js 24 and requires the GitHub Actions runner to be updated to version 2.327.1+—verify this across any self-hosted runners using this template.
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
In `@workflow-templates/apella-org.yml` at line 14, The workflow upgrades
actions/checkout to actions/checkout@v5 which requires Node.js 24 and GitHub
Actions runner >= 2.327.1; either revert to actions/checkout@v3 or ensure all
runners (especially self-hosted) are upgraded to runner version 2.327.1+ and
support Node 24 before merging. Locate the actions/checkout@v5 entry in the
workflow template and: if you cannot guarantee runner upgrades, change it back
to actions/checkout@v3; if you will upgrade runners, add a comment or a check
step documenting the required runner version and update your runner
provisioning/maintenance scripts to enforce 2.327.1+. Ensure any CI admin docs
or onboarding notes are updated to reflect the new runner requirement.
Summary
GitHub is deprecating the Node.js 20 runtime for JavaScript actions (forced to Node 24 on 2026-06-16, removed 2026-09-16).
actions/checkout@v3runs on the even-older node16. These org starter workflows are copied into repos via the GitHub "New workflow" UI, so bumping them here stops new repos from inheriting the deprecated pin.workflow-templates/apella-org.yml:actions/checkout@v3 → v5workflow-templates/apella-terraform-format-check.yml:actions/checkout@v3 → v5dflook/terraform-fmt-check@v1is a Docker-based action (runs.using: docker), so it is unaffected by the Node deprecation and left unchanged.Context
This starter workflow is the likely origin of
checkout@v3appearing in 39 repos across the org. Existing repos still need their own bumps (tracked separately).🤖 Generated with Claude Code