Skip to content

Upgrade GitHub Actions to latest versions#54

Closed
rabestro wants to merge 1 commit intomasterfrom
rabestro-patch-4
Closed

Upgrade GitHub Actions to latest versions#54
rabestro wants to merge 1 commit intomasterfrom
rabestro-patch-4

Conversation

@rabestro
Copy link
Copy Markdown
Owner

@rabestro rabestro commented Mar 31, 2026

Summary by CodeRabbit

  • Chores
    • Updated GitHub Actions workflow to use newer versions of checkout and cache actions for improved stability and security.

@rabestro rabestro self-assigned this Mar 31, 2026
@coderabbitai
Copy link
Copy Markdown

coderabbitai bot commented Mar 31, 2026

📝 Walkthrough

Walkthrough

GitHub Actions workflow updated to use newer major versions of actions: checkout bumped from v2 to v3, and cache bumped from v1 to v3. No changes to workflow logic, step configuration, or build commands.

Changes

Cohort / File(s) Summary
GitHub Actions Version Updates
.github/workflows/build.yml
Updated actions/checkout from v2 to v3 and actions/cache from v1 to v3.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~3 minutes

Poem

🐰 A hop, a skip, a version bump so fine,
From v2 to v3, the actions align!
Cache and checkout dance anew,
GitHub workflows fresh and true!

🚥 Pre-merge checks | ✅ 3
✅ Passed checks (3 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title 'Upgrade GitHub Actions to latest versions' directly and clearly summarizes the main change: updating GitHub Actions workflow to newer major versions.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch rabestro-patch-4

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Copy link
Copy Markdown

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

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

📥 Commits

Reviewing files that changed from the base of the PR and between 4fd6e6a and 23c5f83.

📒 Files selected for processing (1)
  • .github/workflows/build.yml

runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

⚠️ Potential issue | 🔴 Critical

🧩 Analysis chain

🌐 Web query:

`What are the currently supported major versions and runtime compatibility for:

  1. actions/checkout
  2. actions/cache
  3. 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:


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@v4 runs on node20 (deprecated); use v5 or v6 (node24)
  • actions/cache@v3 runs on node16 (unsupported); use v5 (node24)
  • actions/setup-java@v1 runs 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.

@rabestro rabestro closed this Apr 1, 2026
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