Skip to content
This repository has been archived by the owner on Jul 17, 2024. It is now read-only.

Commit

Permalink
ci: fix SonarCloud configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
Christopher-Chianelli committed May 31, 2024
1 parent deb60d1 commit cd4e6f8
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/sonarcloud.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,11 @@ on:
- '**.adoc'
- '*.txt'
- '.ci/**'
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.
types:
- opened
- reopened
- synchronize

defaults:
run:
Expand Down Expand Up @@ -106,4 +111,4 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONARCLOUD_TOKEN: ${{ secrets.SONARCLOUD_TOKEN }}
run: mvn -B --fail-at-end validate -Psonarcloud-analysis -Dsonar.projectKey=TimefoldAI_timefold-solver-python -Dsonar.login=${{ env.SONARCLOUD_TOKEN }}
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 comments on commit cd4e6f8

Please sign in to comment.