Skip to content

Commit 37132a9

Browse files
Modified Scan workflow to contain PR number during a PR (#117)
1 parent 58605fa commit 37132a9

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

.github/workflows/scan.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,5 +74,5 @@ jobs:
7474
- name: Scan with SonarCloud
7575
env:
7676
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
77-
run: mvn clean install -Dgpg.skip=true sonar:sonar
77+
run: mvn clean install -Dgpg.skip=true sonar:sonar ${{ contains(github.event_name, 'pull_request') && format('-Dsonar.pullrequest.key={0}', github.event.pull_request.number) || '' }}
7878

0 commit comments

Comments
 (0)