diff --git a/.github/workflows/application-health-checker.yml b/.github/workflows/application-health-checker.yml index 9b63f6d..74ca6cf 100644 --- a/.github/workflows/application-health-checker.yml +++ b/.github/workflows/application-health-checker.yml @@ -16,7 +16,7 @@ jobs: run: sudo apt-get update - name: Checkout code # Step to check out the code from the repository - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis @@ -29,14 +29,15 @@ jobs: - name: Build Project # Build with npm run: npm run build - - - uses: sonarsource/sonarqube-scan-action@v3 + + - uses: sonarsource/sonarqube-scan-action@v3 # Performs the project analysis using SonarQube Scanner. 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 - # env: - # SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} + + # If you wish to not fail your job when the Quality Gate is red, comment out the + # following lines. + - uses: sonarsource/sonarqube-quality-gate-action@master # Checks the SonarQube Quality Gate status. + timeout-minutes: 5 + env: + SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} diff --git a/.github/workflows/pull-request-checker.yml b/.github/workflows/pull-request-checker.yml index 2532f76..9d8117c 100644 --- a/.github/workflows/pull-request-checker.yml +++ b/.github/workflows/pull-request-checker.yml @@ -22,7 +22,7 @@ jobs: run: sudo apt-get update - name: Checkout code # Step to check out the code from the repository - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis @@ -36,13 +36,14 @@ jobs: - name: Build Project # Build with npm run: npm run build - - uses: sonarsource/sonarqube-scan-action@v3 + - uses: sonarsource/sonarqube-scan-action@v3 # Performs the project analysis using SonarQube Scanner. 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 - # env: - # SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} + + # If you wish to not fail your job when the Quality Gate is red, comment out the + # following lines. + - uses: sonarsource/sonarqube-quality-gate-action@master # Checks the SonarQube Quality Gate status. + timeout-minutes: 5 + env: + SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}