From 2ca757213e1ebe3c67e09d7890058f2444d8f67f Mon Sep 17 00:00:00 2001 From: SevenOfAces Date: Thu, 6 Mar 2025 04:13:31 +0000 Subject: [PATCH] Update .forgejo/workflows/sonar.yml --- .forgejo/workflows/sonar.yml | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/.forgejo/workflows/sonar.yml b/.forgejo/workflows/sonar.yml index 4b2f72e..45af603 100644 --- a/.forgejo/workflows/sonar.yml +++ b/.forgejo/workflows/sonar.yml @@ -24,4 +24,19 @@ jobs: pollingTimeoutSec: 600 env: SONAR_HOST_URL: ${{ secrets.SONARQUBE_HOST }} - SONAR_TOKEN: ${{ secrets.SONARQUBE_TOKEN }} \ No newline at end of file + SONAR_TOKEN: ${{ secrets.SONARQUBE_TOKEN }} + # Check the Quality Gate status. + - name: SonarQube Quality Gate check + id: sonarqube-quality-gate-check + uses: sonarsource/sonarqube-quality-gate-action@master + with: + pollingTimeoutSec: 600 + env: + SONAR_TOKEN: ${{ secrets.SONARQUBE_TOKEN }} + SONAR_HOST_URL: ${{ secrets.SONARQUBE_HOST }} #OPTIONAL + + # Optionally you can use the output from the Quality Gate in another step. + # The possible outputs of the `quality-gate-status` variable are `PASSED`, `WARN` or `FAILED`. + - name: "Show SonarQube Quality Gate Status value" + run: echo "The Quality Gate status is ${{ steps.sonarqube-quality-gate-check.outputs.quality-gate-status }}" +