diff --git a/.github/workflows/code-npm_node-sonarcloud-analysis.yml b/.github/workflows/code-npm_node-sonarcloud-analysis.yml index 574bf37..af741c2 100644 --- a/.github/workflows/code-npm_node-sonarcloud-analysis.yml +++ b/.github/workflows/code-npm_node-sonarcloud-analysis.yml @@ -118,6 +118,13 @@ jobs: echo "app-name=$(jq -r '.name' package.json)" >> "$GITHUB_OUTPUT" echo "github-repository=$(echo "$GITHUB_REPOSITORY" | cut -d'/' -f2)" >> "$GITHUB_OUTPUT" + - name: Set up JDK 21 for SonarScanner + if: steps.project.outputs.has-package == 'true' + uses: actions/setup-java@v5 + with: + distribution: temurin + java-version: "21" + - name: SonarCloud / Run analysis with release event if: ${{ steps.project.outputs.has-package == 'true' && github.event_name == 'release' }} env: