Skip to content

Commit b4d8c37

Browse files
uruwhydeacon-mp
andauthored
Switch to SonarQube (#3201)
* Switch to SonarQube * update python versions in sonar properties * explicitly set sonar.host.url --------- Co-authored-by: deacon-mp <61169193+deacon-mp@users.noreply.github.com>
1 parent 3b796f3 commit b4d8c37

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

.github/workflows/quality.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,8 @@ jobs:
5555
run: tox
5656
- name: Override Coverage Source Path for Sonar
5757
run: sed -i "s/<source>\/home\/runner\/work\/caldera\/caldera/<source>\/github\/workspace/g" /home/runner/work/caldera/caldera/coverage.xml
58-
- name: SonarCloud Scan
59-
uses: SonarSource/sonarcloud-github-action@49e6cd3b187936a73b8280d59ffd9da69df63ec9
58+
- name: SonarQube Scan
59+
uses: SonarSource/sonarqube-scan-action@v5.3.0
6060
env:
6161
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any
6262
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}

sonar-project.properties

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,9 @@ sonar.sources=./app
1111
# Encoding of the source code. Default is default system encoding
1212
#sonar.sourceEncoding=UTF-8
1313

14-
sonar.python.version=3.9,3.10,3.11
14+
sonar.host.url=https://sonarcloud.io
15+
16+
sonar.python.version=3.10,3.11,3.12
1517
sonar.python.coverage.reportPaths=coverage.xml
1618

1719
# Make an exception to Link's constructor, since it requires a refactor to pass

0 commit comments

Comments
 (0)