Skip to content

ci: fix Node 20 deprecation warning in GitHub Actions#89

Merged
pcaro merged 2 commits into
masterfrom
LITE-33583_fix_github_actions_node20
Jul 2, 2026
Merged

ci: fix Node 20 deprecation warning in GitHub Actions#89
pcaro merged 2 commits into
masterfrom
LITE-33583_fix_github_actions_node20

Conversation

@pcaro

@pcaro pcaro commented Jul 2, 2026

Copy link
Copy Markdown
Contributor

Summary

GitHub Actions runners are dropping Node 20 support, so actions still pinned to it are being force-run on Node 24 with a deprecation warning:

Node.js 20 is deprecated. The following actions target Node.js 20 but are being forced to run on Node.js 24.

This branch bumps every affected action to a current major version that targets the required Node runtime natively, and replaces the deprecated SonarScanner action.

Node runtime bumps

  • actions/checkout v3 → v7 (build.yml, deploy.yml)
  • actions/setup-python v4 → v6 (build.yml, deploy.yml)
  • actions/github-script v6 → v9 (deploy.yml) — v6 runs on Node 16, v9 on Node 24

SonarCloud action replacement

  • SonarSource/sonarcloud-github-action@masterSonarSource/sonarqube-scan-action@v8 (build.yml)

sonarcloud-github-action is deprecated in favour of sonarqube-scan-action, and its internals still pull actions/cache@v4 (Node 20), which is the source of the remaining cache deprecation warning. The replacement runs on Node 24. Added SONAR_HOST_URL: https://sonarcloud.io since the generic scan action has no SonarCloud default; projectKey/organization already live in sonar-project.properties.

Notes

  • The @master-pinned jakejarvis/wait-action and sonarsource/sonarqube-quality-gate-action in build.yml are left untouched — they float already and don't emit the deprecation warning.

Ref: LITE-33583

@qarlosh qarlosh left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

it seems that these versions (actions/checkout@v4 and actions/setup-python@v5) still use Node 20. checkout needs at least v5. I didn't check setup-python.

GitHub Actions runners are dropping Node 20 support, forcing actions
pinned to it onto Node 24 with a deprecation warning. Bump
actions/checkout to v7 and actions/setup-python to v6 in the build and
deploy workflows to versions that target current Node natively.

Part of LITE-33583.
@pcaro pcaro force-pushed the LITE-33583_fix_github_actions_node20 branch from 9f607fd to 1b5cfe2 Compare July 2, 2026 09:49
The SonarScanner (sonarcloud-github-action) is deprecated in favour of
sonarqube-scan-action, and its internals still pull actions/cache@v4,
which targets the now-deprecated Node 20 runtime. Switch to
SonarSource/sonarqube-scan-action@v8 (runs on Node 24), setting
SONAR_HOST_URL to https://sonarcloud.io since the generic scan action
has no SonarCloud default; projectKey/organization stay in
sonar-project.properties.

Also bump actions/github-script v6 (Node 16) to v9 (Node 24) in
deploy.yml, the remaining action on a deprecated runtime.
@sonarqubecloud

sonarqubecloud Bot commented Jul 2, 2026

Copy link
Copy Markdown

@pcaro pcaro merged commit 7cd0e02 into master Jul 2, 2026
9 checks passed
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.

2 participants