From 8259a049ecd6e7a741892d5121ceef9b8d939735 Mon Sep 17 00:00:00 2001 From: Lucian Turiac Date: Fri, 6 Oct 2023 16:03:26 +0300 Subject: [PATCH] Create sonarqube_pr_analysis --- .github/workflows/sonarqube_pr_analysis.yml | 24 +++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 .github/workflows/sonarqube_pr_analysis.yml 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 }}