From d2db333fe76dd903d4213b831e4023b3ea3606c1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ru=C3=A1n=20Murgatroyd?= Date: Sun, 11 Aug 2024 21:39:49 +0100 Subject: [PATCH] [SQ] SonarCube now fails if the code report is bad --- .github/workflows/sonarqube.yml | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/.github/workflows/sonarqube.yml b/.github/workflows/sonarqube.yml index 34e3670..7574331 100644 --- a/.github/workflows/sonarqube.yml +++ b/.github/workflows/sonarqube.yml @@ -18,10 +18,8 @@ jobs: - 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 - # env: - # SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} \ No newline at end of file + SONAR_HOST_URL: ${{ secrets.SONAR_HOST_URL } + - uses: sonarsource/sonarqube-quality-gate-action@master + timeout-minutes: 5 + env: + SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}