Skip to content

Commit f4c8dbe

Browse files
authored
Merge pull request #202 from UQcsse3200/JTrenerry-patch-1
Update sonarcloud_check.yaml
2 parents da2dd2d + 5f30f76 commit f4c8dbe

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

.github/workflows/sonarcloud_check.yaml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,12 @@ jobs:
3434
run: |
3535
cd $GRADLE_DIR
3636
chmod +x ./gradlew
37-
./gradlew sonarqube --info
37+
./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
3842
env:
39-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any
43+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4044
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
41-
GRADLE_DIR: 'source' # Modify this to wherever './gradlew' is
45+
GRADLE_DIR: 'source'

0 commit comments

Comments
 (0)