Looks like the latest sonar-scanner-cli
container image that was pushed just a few hours ago is using NodeJS 12.x.
https://hub.docker.com/r/sonarsource/sonar-scanner-cli/tags
Tags: latest, 4, 4.8, 4.8.0
Verification:
podman pull sonarsource/sonar-scanner-cli:4
podman run --rm -it --entrypoint bash sonarsource/sonar-scanner-cli:4
root@d0467f713d21:/usr/src# node -v
v12.22.9
podman pull sonarsource/sonar-scanner-cli:4.8
podman run --rm -it --entrypoint bash sonarsource/sonar-scanner-cli:4.8
root@1f80d5be9719:/usr/src# node -v
v12.22.9
The scanner of course does not support NodeJS 12.x anymore and we get the following error in our pipelines:
INFO: Quality profile for js: Sonar way
INFO: Quality profile for ts: Sonar way
INFO: ------------------------------------------------------------------------
INFO: EXECUTION FAILURE
INFO: ------------------------------------------------------------------------
INFO: Total time: 57.273s
INFO: Final Memory: 21M/94M
INFO: ------------------------------------------------------------------------
ERROR: Error during SonarScanner execution
ERROR:
The version of node.js (12) you have used to run this analysis is deprecated and we stopped accepting it.
Please update to at least node.js 14. You can find more information here: https://docs.sonarcloud.io/appendices/scanner-environment/
Please push new container images for those tags using a supported version of NodeJS.