Sonarsource/sonarcloud-github-action failing with Node.js 12 error

Came here for the same issue. NodeJS version is managed by SonarCloud action dockerfile, so we don’t have the opportunity to change it.

PS: For now as a quick fix we did a rollback using v1.8 of the action:

- uses: actions/checkout@v3
        with:
          fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis
- name: SonarCloud Scan
        uses: SonarSource/sonarcloud-github-action@v1.8
        env:
          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
          SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
9 Likes