diff --git a/.github/workflows/sonarqube_pr_analysis.yml b/.github/workflows/sonarqube_pr_analysis.yml new file mode 100644 index 000000000..3ac8eef3f --- /dev/null +++ b/.github/workflows/sonarqube_pr_analysis.yml @@ -0,0 +1,24 @@ +on: + push: + branches: + - main + - feature/payment_provider_gateway + - develop + - 'releases/**' + pull_request: + types: [opened, synchronize, reopened] + +name: SonarQube PR Analysis +jobs: + sonarqube: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + with: + fetch-depth: 0 + - name: SonarQube Scan + uses: sonarsource/sonarqube-scan-action@master + env: + SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} + SONAR_HOST_URL: ${{ secrets.SONAR_HOST_URL }} + SONAR_ROOT_CERT: ${{ secrets.SONAR_ROOT_CERT }}