From 68021f5c0b37ad0bc293f629b34f59c234d12673 Mon Sep 17 00:00:00 2001 From: Shantanu Kumar Date: Mon, 18 May 2026 19:50:52 +0530 Subject: [PATCH 1/3] sonar.long replaced with sonar.token for sonar scan --- .github/workflows/pipeline.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/pipeline.yml b/.github/workflows/pipeline.yml index 5316074..7f96392 100644 --- a/.github/workflows/pipeline.yml +++ b/.github/workflows/pipeline.yml @@ -56,8 +56,8 @@ jobs: restore-keys: ${{ runner.os }}-m2 - name: Build with Maven cloud -# run: mvn -B verify sonar:sonar -Dsonar.projectKey=mcUserService -Dsonar.organization=shantanukumarsinha -Dsonar.host.url=https://sonarcloud.io -Dsonar.login=$SONARCLOUD_TOKEN - run: mvn -B verify org.sonarsource.scanner.maven:sonar-maven-plugin:sonar -Dsonar.projectKey=mcUserService + run: mvn -B verify sonar:sonar -Dsonar.projectKey=mcUserService -Dsonar.organization=shantanukumarsinha -Dsonar.host.url=https://sonarcloud.io -Dsonar.token=$SONARCLOUD_TOKEN +# run: mvn -B verify org.sonarsource.scanner.maven:sonar-maven-plugin:sonar -Dsonar.projectKey=mcUserService env: # GIT_HUB_TOKEN: ${{ secrets.GIT_HUB_TOKEN }} # Needed to get PR information, if any SONARCLOUD_TOKEN: ${{ secrets.SONAR_CLOUD_TOKEN }} From 59f7259cda6a560c13830833fc9656e200e2582e Mon Sep 17 00:00:00 2001 From: Shantanu Kumar Date: Tue, 19 May 2026 00:27:45 +0530 Subject: [PATCH 2/3] update sonar build and analyze --- .github/workflows/pipeline.yml | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/.github/workflows/pipeline.yml b/.github/workflows/pipeline.yml index 7f96392..7733256 100644 --- a/.github/workflows/pipeline.yml +++ b/.github/workflows/pipeline.yml @@ -55,13 +55,10 @@ jobs: key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }} restore-keys: ${{ runner.os }}-m2 - - name: Build with Maven cloud - run: mvn -B verify sonar:sonar -Dsonar.projectKey=mcUserService -Dsonar.organization=shantanukumarsinha -Dsonar.host.url=https://sonarcloud.io -Dsonar.token=$SONARCLOUD_TOKEN -# run: mvn -B verify org.sonarsource.scanner.maven:sonar-maven-plugin:sonar -Dsonar.projectKey=mcUserService + - name: Build and analyze env: -# GIT_HUB_TOKEN: ${{ secrets.GIT_HUB_TOKEN }} # Needed to get PR information, if any - SONARCLOUD_TOKEN: ${{ secrets.SONAR_CLOUD_TOKEN }} - + SONAR_TOKEN: ${{ secrets.SONAR_CLOUD_TOKEN }} + run: mvn -B verify org.sonarsource.scanner.maven:sonar-maven-plugin:sonar -Dsonar.projectKey=mcUserService # Optional: Uploads the full dependency graph to GitHub to improve the quality of Dependabot alerts this repository can receive - name: Update dependency graph From 7e9b3dbac97b4fc5aeec2ffc08eea18c114c123e Mon Sep 17 00:00:00 2001 From: Shantanu Kumar Date: Tue, 19 May 2026 00:37:25 +0530 Subject: [PATCH 3/3] update sonar host --- .github/workflows/pipeline.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/pipeline.yml b/.github/workflows/pipeline.yml index 7733256..06dd5f6 100644 --- a/.github/workflows/pipeline.yml +++ b/.github/workflows/pipeline.yml @@ -58,7 +58,7 @@ jobs: - name: Build and analyze env: SONAR_TOKEN: ${{ secrets.SONAR_CLOUD_TOKEN }} - run: mvn -B verify org.sonarsource.scanner.maven:sonar-maven-plugin:sonar -Dsonar.projectKey=mcUserService + run: mvn -B verify org.sonarsource.scanner.maven:sonar-maven-plugin:sonar -Dsonar.projectKey=mcUserService -Dsonar.organization=shantanukumarsinha -Dsonar.host.url=https://sonarcloud.io # Optional: Uploads the full dependency graph to GitHub to improve the quality of Dependabot alerts this repository can receive - name: Update dependency graph