diff --git a/.github/workflows/sonarcloud.yml b/.github/workflows/sonarcloud.yml index 0f280d2c4..f6db8ac5b 100644 --- a/.github/workflows/sonarcloud.yml +++ b/.github/workflows/sonarcloud.yml @@ -6,6 +6,8 @@ jobs: steps: - uses: actions/checkout@v2 with: + repository: ${{github.event.pull_request.head.repo.full_name}} + ref: ${{github.head_ref}} fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis - name: Set up JDK 11 uses: actions/setup-java@v1