diff --git a/.github/workflows/pipeline.yml b/.github/workflows/pipeline.yml index 5316074..06dd5f6 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.login=$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 -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