diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index e68b148..94788d2 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -17,3 +17,8 @@ jobs: uses: SonarSource/sonarqube-scan-action@7006c4492b2e0ee0f816d36501671557c97f5995 # v8.1.0 env: SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} + - name: Quality Gate Check + uses: SonarSource/sonarqube-quality-gate-action@7a5fffe8e523c40e0c740b6bc2712ab503e52efa # v1.2.0 + timeout-minutes: 5 + env: + SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} diff --git a/.github/workflows/sonarcloud.yml b/.github/workflows/sonarcloud.yml deleted file mode 100644 index 78b250b..0000000 --- a/.github/workflows/sonarcloud.yml +++ /dev/null @@ -1,32 +0,0 @@ -name: SonarCloud Code Analysis - -on: - push: - branches: [main] - pull_request: - types: [opened, synchronize, reopened] - -permissions: - contents: read - pull-requests: read - -jobs: - sonarcloud: - name: SonarCloud - runs-on: ubuntu-latest - steps: - - name: Checkout - uses: actions/checkout@v4 - with: - fetch-depth: 0 - - - name: SonarCloud Scan - uses: SonarSource/sonarqube-scan-action@v4 - env: - SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} - - - name: Quality Gate Check - uses: SonarSource/sonarqube-quality-gate-action@v1 - timeout-minutes: 5 - env: - SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} diff --git a/sonar-project.properties b/sonar-project.properties index 4104e69..3547d04 100644 --- a/sonar-project.properties +++ b/sonar-project.properties @@ -1,9 +1,6 @@ # SonarCloud project configuration. -# Replace sonar.organization / sonar.projectKey with the values shown on your -# SonarCloud project's Administration > General Settings page after you -# import this repo at https://sonarcloud.io/projects/create -sonar.organization=CHANGE_ME_org-key -sonar.projectKey=CHANGE_ME_0x5t4l1n_AURHub +sonar.organization=0x5t4l1n +sonar.projectKey=0x5t4l1n_AURHub sonar.sources=backend,frontend/src sonar.exclusions=frontend/.vite/**,frontend/dist/**,**/__pycache__/**