From 1a4370bbf05058b1e760cc15792cd8783fe49194 Mon Sep 17 00:00:00 2001 From: Bushra Asif Date: Fri, 17 Oct 2025 18:38:15 +0500 Subject: [PATCH 1/3] Sonarqube workflow --- sonar-project.properties | 1 + 1 file changed, 1 insertion(+) create mode 100644 sonar-project.properties diff --git a/sonar-project.properties b/sonar-project.properties new file mode 100644 index 00000000..7b904553 --- /dev/null +++ b/sonar-project.properties @@ -0,0 +1 @@ +sonar.projectKey=AltaPay_plugin-prestashop_37fe3889-2a05-47ac-b3f9-4c4169e24be3 From 345ab04c7546c4e97a00b073cb38c3ffbf19294c Mon Sep 17 00:00:00 2001 From: Bushra Asif Date: Fri, 17 Oct 2025 18:39:54 +0500 Subject: [PATCH 2/3] Add SonarQube analysis workflow --- .github/workflows/sonarqube-analysis.yml | 31 ++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 .github/workflows/sonarqube-analysis.yml diff --git a/.github/workflows/sonarqube-analysis.yml b/.github/workflows/sonarqube-analysis.yml new file mode 100644 index 00000000..324ba299 --- /dev/null +++ b/.github/workflows/sonarqube-analysis.yml @@ -0,0 +1,31 @@ +name: SonarQube Analysis + +on: + pull_request: + push: + branches: ["**"] + +jobs: + build: + name: Run SonarQube Analysis + runs-on: self-hosted + + steps: + - uses: actions/checkout@v5 + with: + fetch-depth: 0 + + - name: SonarQube Scan + uses: sonarsource/sonarqube-scan-action@v6 + env: + SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} + SONAR_HOST_URL: ${{ secrets.SONAR_HOST_URL }} + + - name: SonarQube Quality Gate check + id: sonarqube-quality-gate-check + uses: sonarsource/sonarqube-quality-gate-action@v1.2.0 + with: + pollingTimeoutSec: 600 + env: + SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} + SONAR_HOST_URL: ${{ secrets.SONAR_HOST_URL }} From 1bd1f232143aa0f88fadc2fd6b39de0fff934cad Mon Sep 17 00:00:00 2001 From: Bushra Asif Date: Mon, 20 Oct 2025 11:02:19 +0500 Subject: [PATCH 3/3] Exclude Sonar coverage --- sonar-project.properties | 1 + 1 file changed, 1 insertion(+) diff --git a/sonar-project.properties b/sonar-project.properties index 7b904553..3a735850 100644 --- a/sonar-project.properties +++ b/sonar-project.properties @@ -1 +1,2 @@ sonar.projectKey=AltaPay_plugin-prestashop_37fe3889-2a05-47ac-b3f9-4c4169e24be3 +sonar.coverage.exclusions=**