diff --git a/.github/workflows/sonar.yml b/.github/workflows/sonar.yml index 54a3b10e8..201f03e24 100644 --- a/.github/workflows/sonar.yml +++ b/.github/workflows/sonar.yml @@ -31,7 +31,7 @@ jobs: sonarcloud: name: Scan runs-on: ubuntu-latest - if: ${{ !github.event.pull_request.head.repo.fork }} + if: ${{ !github.event.pull_request.base.repo.fork || !github.event.pull_request.head.repo.fork }} steps: - uses: actions/checkout@v4 with: