diff --git a/.github/workflows/sonar.yml b/.github/workflows/sonar.yml index b260684..dd8615e 100644 --- a/.github/workflows/sonar.yml +++ b/.github/workflows/sonar.yml @@ -57,10 +57,10 @@ jobs: if: github.event.workflow_run.event == 'pull_request' run: > ./gradlew --info sonar - -Dsonar.scm.revision=${{ github.event.workflow_run.head_sha }} - -Dsonar.pullrequest.key=${{ env.PR_NUMBER }} - -Dsonar.pullrequest.branch=${{ env.PR_HEAD_REF }} - -Dsonar.pullrequest.base=${{ env.PR_BASE_REF }} + -Dsonar.scm.provider=git + -Dsonar.pullrequest.key=${{ github.event.workflow_run.pull_requests.number }} + -Dsonar.pullrequest.branch=${{ github.event.workflow_run.pull_requests.head.ref }} + -Dsonar.pullrequest.base=${{ github.event.workflow_run.pull_requests.base.ref }} env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}