From fe621ff93febc975a09ec04015a82908400d4c16 Mon Sep 17 00:00:00 2001 From: Mahesh-Binayak <76687012+Mahesh-Binayak@users.noreply.github.com> Date: Mon, 27 Jul 2026 12:50:01 +0530 Subject: [PATCH] Add JDK 21 setup to Sonar analysis workflow and update the deprecated sonar.login variable. Signed-off-by: Mahesh-Binayak <76687012+Mahesh-Binayak@users.noreply.github.com> --- .github/workflows/npm-sonar-analysis.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/npm-sonar-analysis.yml b/.github/workflows/npm-sonar-analysis.yml index 16cf9525..8b9dd5a2 100644 --- a/.github/workflows/npm-sonar-analysis.yml +++ b/.github/workflows/npm-sonar-analysis.yml @@ -61,6 +61,11 @@ jobs: - uses: actions/setup-node@v3 with: node-version: ${{ inputs.NODE_VERSION }} + - name: Set up JDK 21 + uses: actions/setup-java@v3 + with: + distribution: 'temurin' + java-version: '21' - name: Cache npm dependencies uses: actions/cache@v4 with: @@ -126,7 +131,7 @@ jobs: - name: run sonar analysis run: | cd "./${{inputs.SERVICE_LOCATION}}" - npm install sonar-scanner && npm run sonar -- -Dsonar.login=${{ env.SONAR_TOKEN }} -Dsonar.organization=${{ env.ORG_KEY }} ${{ inputs.SONAR_ARGS }} + npm install sonar-scanner && npm run sonar -- -Dsonar.token=${{ env.SONAR_TOKEN }} -Dsonar.organization=${{ env.ORG_KEY }} ${{ inputs.SONAR_ARGS }} env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}