From 63d4a7259957ae16f6753f2b7826a697c86846ab Mon Sep 17 00:00:00 2001 From: Rinor12010 <105772190+Rinor12010@users.noreply.github.com> Date: Tue, 24 Oct 2023 13:31:52 +0200 Subject: [PATCH] fix git action file --- .github/workflows/sonarqube.yml | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/.github/workflows/sonarqube.yml b/.github/workflows/sonarqube.yml index e557e2bc..be0e3455 100644 --- a/.github/workflows/sonarqube.yml +++ b/.github/workflows/sonarqube.yml @@ -1,23 +1,22 @@ -name: SonarQube Analysis - on: push: branches: - master - - develop - "prestashop-plugin-vue" + - develop + - 'releases/**' pull_request: types: [opened, synchronize, reopened] +name: SonarQube PR Analysis jobs: - build: - name: SonarQube Analysis + sonarqube: runs-on: ubuntu-latest - permissions: read-all steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 with: - fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis - - uses: sonarsource/sonarqube-scan-action@master + 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 }}