From dfa4f565c67b0f85d3ae52105c6f2dc4c369c158 Mon Sep 17 00:00:00 2001 From: Karma Tsering <75218136+Karma-Tsering@users.noreply.github.com> Date: Fri, 16 Aug 2024 15:42:08 +0530 Subject: [PATCH] Update build.yml --- .github/workflows/build.yml | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 5ffead6..ae33818 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -17,13 +17,8 @@ jobs: - uses: actions/checkout@v4 with: fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis - - uses: sonarsource/sonarqube-scan-action@master - env: - SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} - SONAR_HOST_URL: ${{ secrets.SONAR_HOST_URL }} - # If you wish to fail your job when the Quality Gate is red, uncomment the - # following lines. This would typically be used to fail a deployment. - - uses: sonarsource/sonarqube-quality-gate-action@master - timeout-minutes: 5 + - name: SonarQube Scan + uses: sonarsource/sonarqube-scan-action@3.0.0 # Ex: v2.1.0, See the latest version at https://github.com/marketplace/actions/official-sonarqube-scan env: SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} + SONAR_HOST_URL: ${{ vars.SONAR_HOST_URL }}