Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,15 @@ jobs:
name: Build
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.

with:
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis
- name: Set up JDK 17
uses: actions/setup-java@v1
with:
java-version: 17
- name: Cache SonarCloud packages
uses: actions/cache@v1
uses: actions/cache@v3
with:
path: ~/.sonar/cache
key: ${{ runner.os }}-sonar
Expand Down
Loading