From b83076ad2f222e540cb1c203c7afe7c4b8efed89 Mon Sep 17 00:00:00 2001 From: Ignacio Calderon Date: Wed, 10 Apr 2024 10:39:31 +0200 Subject: [PATCH] skip sonar scan from PRs from forks --- .github/workflows/branch-check.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/branch-check.yml b/.github/workflows/branch-check.yml index 8dfbbae..79fd4b2 100644 --- a/.github/workflows/branch-check.yml +++ b/.github/workflows/branch-check.yml @@ -39,7 +39,7 @@ jobs: - name: SonarCloud Scan uses: SonarSource/sonarcloud-github-action@master - if: github.event_name == 'pull_request' && matrix.python == '3.x' + if: github.event_name == 'pull_request' && matrix.python == '3.x' && github.event.pull_request.head.repo.full_name != github.repository with: args: > -Dsonar.projectVersion=${{ env.VERSION }} @@ -63,7 +63,7 @@ jobs: - name: SonarCloud Scan uses: SonarSource/sonarcloud-github-action@master - if: github.event_name == 'push' && matrix.python == '3.x' + if: github.event_name == 'push' && matrix.python == '3.x' && github.event.pull_request.head.repo.full_name != github.repository with: args: > -Dsonar.projectVersion=${{ env.VERSION }}