We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents da2dd2d + 5f30f76 commit f4c8dbeCopy full SHA for f4c8dbe
.github/workflows/sonarcloud_check.yaml
@@ -34,8 +34,12 @@ jobs:
34
run: |
35
cd $GRADLE_DIR
36
chmod +x ./gradlew
37
- ./gradlew sonarqube --info
+ ./gradlew sonarqube \
38
+ -Dsonar.pullrequest.key=${{ github.event.pull_request.number }} \
39
+ -Dsonar.pullrequest.branch=${{ github.head_ref }} \
40
+ -Dsonar.pullrequest.base=main \
41
+ --info
42
env:
- GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any
43
+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
44
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
- GRADLE_DIR: 'source' # Modify this to wherever './gradlew' is
45
+ GRADLE_DIR: 'source'
0 commit comments