Skip to content

Commit bc237c8

Browse files
Christopher-Chianellitriceo
authored andcommitted
ci: fix SonarCloud configuration
1 parent deb60d1 commit bc237c8

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

.github/workflows/sonarcloud.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,11 @@ on:
1212
- '**.adoc'
1313
- '*.txt'
1414
- '.ci/**'
15+
pull_request_target: # This workflow will be triggered by the opening, reopening, or updating of a PR, and the first run will not require approval.
16+
types:
17+
- opened
18+
- reopened
19+
- synchronize
1520

1621
defaults:
1722
run:
@@ -106,4 +111,4 @@ jobs:
106111
env:
107112
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
108113
SONARCLOUD_TOKEN: ${{ secrets.SONARCLOUD_TOKEN }}
109-
run: mvn -B --fail-at-end validate -Psonarcloud-analysis -Dsonar.projectKey=TimefoldAI_timefold-solver-python -Dsonar.login=${{ env.SONARCLOUD_TOKEN }}
114+
run: mvn -B -Psonarcloud-analysis validate org.sonarsource.scanner.maven:sonar-maven-plugin:sonar -Dsonar.organization=timefold -Dsonar.projectKey=TimefoldAI_timefold-solver-python -Dsonar.host.url=https://sonarcloud.io -Dsonar.pullrequest.key=${{ github.event.pull_request.number }} -Dsonar.pullrequest.branch=${{ github.event.pull_request.head.ref }} -Dsonar.scm.revision=${{ github.event.pull_request.head.sha }}

0 commit comments

Comments
 (0)