From 968bcb1204c2e2ba7f4575a2c5715cf662bf6b0c Mon Sep 17 00:00:00 2001 From: "Trez.One" Date: Tue, 17 Dec 2024 20:31:25 -0500 Subject: [PATCH] Tweaking the Sonarqube scanning. --- .../workflows/branch-sonarscan-pr-merge.yml | 31 +++++-------------- 1 file changed, 8 insertions(+), 23 deletions(-) diff --git a/.gitea/workflows/branch-sonarscan-pr-merge.yml b/.gitea/workflows/branch-sonarscan-pr-merge.yml index 78b25512..96383b74 100644 --- a/.gitea/workflows/branch-sonarscan-pr-merge.yml +++ b/.gitea/workflows/branch-sonarscan-pr-merge.yml @@ -66,36 +66,21 @@ jobs: SONAR_HOST_URL: ${{ secrets.SONARQUBE_HOST }} SONAR_TOKEN: ${{ secrets.SONARQUBE_TOKEN }} + - name: SonarQube Quality Gate + id: quality-gate + uses: sonarsource/sonarqube-quality-gate-action@v1.1.0 + env: + SONAR_HOST_URL: ${{ secrets.SONARQUBE_HOST }} + SONAR_TOKEN: ${{ secrets.SONARQUBE_TOKEN }} + - name: Custom Quality Gate Check - uses: phwt/sonarqube-quality-gate-action@v1 + uses: DesarrolloORT/sonarqube-quality-gate-action@v1.0.1 id: quality-gate-check with: sonar-project-key: rinoa-docker sonar-host-url: ${{ secrets.SONARQUBE_HOST }} sonar-token: ${{ secrets.SONARQUBE_TOKEN }} github-token: ${{ secrets.BOT_GITEA_TOKEN }} - # Step 2: SonarQube Quality Gate Check - # - name: SonarQube Quality Gate - # id: quality-gate - # uses: sonarsource/sonarqube-quality-gate-action@v1 - # env: - # SONAR_HOST_URL: ${{ secrets.SONARQUBE_HOST }} - # SONAR_TOKEN: ${{ secrets.SONARQUBE_TOKEN }} - - # - name: Pause for quality gate results - # run: sleep 10 - - # - name: Check Quality Gate Status - # uses: DesarrolloORT/sonarqube-quality-gate-action@v1 - # id: quality-gate-check - # with: - # sonar-host-url: ${{ secrets.SONARQUBE_HOST }} - # sonar-token: ${{ secrets.SONARQUBE_TOKEN }} - # github-token: ${{ secrets.BOT_GITEA_TOKEN }} - - # - name: Log Quality Gate Result - # run: | - # echo "Quality Gate Status: ${{ steps.quality-gate.outputs.quality-gate-status }}" # # Job 3: Merge PR if Quality Gate passes # merge-pr: