diff --git a/.github/workflows/sonar.yaml b/.github/workflows/sonar.yaml index f6fb9eabcf..83b611f6b6 100644 --- a/.github/workflows/sonar.yaml +++ b/.github/workflows/sonar.yaml @@ -16,6 +16,8 @@ jobs: sonar: name: Build with Sonar runs-on: ubuntu-20.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: - name: Get current date id: date