Conversation
📝 WalkthroughWalkthroughGitHub Actions workflow updated to use newer major versions of actions: Changes
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~3 minutes Poem
🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Inline comments:
In @.github/workflows/build.yml:
- Line 13: Update the GitHub Actions steps to use the supported action versions:
replace actions/checkout@v3 with actions/checkout@v5 (or `@v6`), replace
actions/cache@v3 and actions/cache@v1 with actions/cache@v5, and replace
actions/setup-java@v1 with actions/setup-java@v5 so all actions run on node24;
ensure the action version strings (e.g., "actions/checkout@v3",
"actions/cache@v3", "actions/setup-java@v1", "actions/cache@v1") are updated
consistently in the workflow.
🪄 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: defaults
Review profile: CHILL
Plan: Pro
Run ID: 2c508cdf-74b9-4686-a61f-30f0893db9b9
📒 Files selected for processing (1)
.github/workflows/build.yml
| runs-on: ubuntu-latest | ||
| steps: | ||
| - uses: actions/checkout@v2 | ||
| - uses: actions/checkout@v3 |
There was a problem hiding this comment.
🧩 Analysis chain
🌐 Web query:
`What are the currently supported major versions and runtime compatibility for:
- actions/checkout
- actions/cache
- actions/setup-java
on GitHub Actions (as of 2026)?`
💡 Result:
GitHub Actions JavaScript runtime baseline (2026)
- GitHub-hosted runners now support Node.js 20 and Node.js 24 (runner v2.328.0+), with the platform moving from Node 20 to Node 24 as the default runtime. (github.blog)
1) actions/checkout
| Major version | Action runtime (runs.using) |
Notes / runner requirements |
|---|---|---|
| v6 | node24 (github.com) | Authenticated git from Docker container actions requires runner v2.329.0+ (github.com) |
| v5 | node24 (github.com) | Minimum compatible runner v2.327.1+ (github.com) |
| v4 | node20 (newreleases.io) | (Older runtime line; consider upgrading due to Node 20 deprecation timeline.) (github.blog) |
2) actions/cache
| Major version | Action runtime (runs.using) |
Notes / runner requirements |
|---|---|---|
| v5 | node24 (github.com) | Minimum runner v2.327.1+ (github.com) |
| v4 | node20 (github.com) | — |
| v3 | node16 (github.com) | Legacy runtime line. |
(Repo also shows action.yml on main using node24.) (github.com)
3) actions/setup-java
| Major version | Action runtime (runs.using) |
Notes / runner requirements |
|---|---|---|
| v5 | node24 (github.com) | Minimum runner v2.327.1+ (github.com) |
| v4 | node20 (github.com) | (Implied by “upgraded from node20 to node24” in v5 breaking changes.) (github.com) |
If you want, tell me whether you care about GHES as well, and I’ll add the GHES support/constraints per major version.
Citations:
- 1: https://github.blog/changelog/2025-09-19-deprecation-of-node-20-on-github-actions-runners/?utm_source=openai
- 2: https://github.com/actions/checkout/blob/main/action.yml
- 3: https://github.com/actions/checkout
- 4: https://github.com/actions/checkout
- 5: https://github.com/actions/checkout/releases
- 6: https://newreleases.io/project/github/actions/checkout/release/v4.0.0?utm_source=openai
- 7: https://github.blog/changelog/2025-09-19-deprecation-of-node-20-on-github-actions-runners/?utm_source=openai
- 8: https://github.com/actions/cache
- 9: https://github.com/actions/cache
- 10: https://github.com/actions/cache
- 11: https://github.com/actions/cache
- 12: https://github.com/actions/cache/blob/main/action.yml
- 13: https://github.com/actions/setup-java
- 14: https://github.com/actions/setup-java
- 15: https://github.com/actions/setup-java
- 16: https://github.com/actions/setup-java
Workflow uses outdated and unsupported action versions; upgrade to latest
The workflow uses action versions that are incompatible with current GitHub Actions runners:
actions/checkout@v4runs on node20 (deprecated); use v5 or v6 (node24)actions/cache@v3runs on node16 (unsupported); use v5 (node24)actions/setup-java@v1runs on node16 (unsupported); use v5 (node24)actions/cache@v1(line 27) runs on node16 (unsupported); use v5 (node24)
All runners now default to node24; node20 is deprecated.
Corrected workflow update
- - uses: actions/checkout@v3
+ - uses: actions/checkout@v6
...
- - name: Set up JDK 17
- uses: actions/setup-java@v1
+ - name: Set up JDK 17
+ uses: actions/setup-java@v5
...
- - name: Cache SonarCloud packages
- uses: actions/cache@v3
+ - name: Cache SonarCloud packages
+ uses: actions/cache@v5
...
- - name: Cache Gradle packages
- uses: actions/cache@v1
+ - name: Cache Gradle packages
+ uses: actions/cache@v5🧰 Tools
🪛 actionlint (1.7.11)
[error] 13-13: the runner of "actions/checkout@v3" action is too old to run on GitHub Actions. update the action's version to fix this issue
(action)
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.
In @.github/workflows/build.yml at line 13, Update the GitHub Actions steps to
use the supported action versions: replace actions/checkout@v3 with
actions/checkout@v5 (or `@v6`), replace actions/cache@v3 and actions/cache@v1 with
actions/cache@v5, and replace actions/setup-java@v1 with actions/setup-java@v5
so all actions run on node24; ensure the action version strings (e.g.,
"actions/checkout@v3", "actions/cache@v3", "actions/setup-java@v1",
"actions/cache@v1") are updated consistently in the workflow.
Summary by CodeRabbit