diff --git a/.github/workflows/test-and-deploy.yml b/.github/workflows/test-and-deploy.yml index 2696e4347..d6de6b1c2 100644 --- a/.github/workflows/test-and-deploy.yml +++ b/.github/workflows/test-and-deploy.yml @@ -30,7 +30,7 @@ jobs: run: make test - name: Install SonarCloud scanner and run analysis - if: ${{ github.event_name == 'pull_request' || github.ref_type == 'branch' }} + if: ${{ github.event_name == 'pull_request' || github.ref_type == 'branch' && !github.event.pull_request.head.repo.fork }} env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}