From 74394698fff6accdae4121177bfdfad3a7e4d009 Mon Sep 17 00:00:00 2001 From: mh-northlander Date: Tue, 5 Nov 2024 18:07:08 +0900 Subject: [PATCH] fix sonarqube workflow --- .github/workflows/sonar.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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 }}