diff --git a/.github/workflows/sonar.yaml b/.github/workflows/sonar.yaml index 098f589d8..9d29e5a31 100644 --- a/.github/workflows/sonar.yaml +++ b/.github/workflows/sonar.yaml @@ -9,6 +9,8 @@ jobs: build: name: Build runs-on: ubuntu-22.04 + # Sonar Token can't be passed to PRs from forks. Disable Sonar workflow unless PR is from a branch. + if: github.event.pull_request.head.repo.full_name == github.repository steps: - uses: actions/checkout@v4 with: