diff --git a/.github/workflows/sonar.yaml b/.github/workflows/sonar.yaml index a106823cd6f..441454d6a98 100644 --- a/.github/workflows/sonar.yaml +++ b/.github/workflows/sonar.yaml @@ -81,4 +81,6 @@ jobs: --define sonar.projectKey=apache_kvrocks \ --define sonar.organization=apache \ --define sonar.scm.revision=${{ github.event.workflow_run.head_sha }} \ - --define sonar.pullrequest.key=$PR_NUMBER + --define sonar.pullrequest.key=$PR_NUMBER \ + --define sonar.pullrequest.base=unstable \ + --define sonar.pullrequest.branch=${{ github.head_ref || github.ref_name }}