Skip to content

Commit

Permalink
👷 From sonarcloud-github-action to sonarqube-scan-action
Browse files Browse the repository at this point in the history
  • Loading branch information
llaumgui committed Dec 24, 2024
1 parent 53c88d1 commit f0e3d96
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 15 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/devops.yml
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ jobs:
- name: Git checkout
uses: actions/checkout@v4
with:
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis
fetch-depth: 0 # Disabling shallow clones is recommended for improving the relevancy of reporting
# https://docs.sonarsource.com/sonarqube/latest/project-administration/analysis-scope/#sonarqube-respects-ignored-files
- name: Remove .gitignore because SonarQube respects ignored files
run: rm .gitignore
Expand All @@ -94,14 +94,14 @@ jobs:
pwd
ls -R
cat coverage.xml
- name: SonarCloud Scan
uses: sonarsource/sonarcloud-github-action@master
- name: SonarQube Scan
uses: SonarSource/sonarqube-scan-action@v4.2.1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
with:
args: >
-Dsonar.verbose=true
#with:
# args: >
# -Dsonar.verbose=true


##############################################################################
Expand Down
17 changes: 8 additions & 9 deletions sonar-project.properties
Original file line number Diff line number Diff line change
@@ -1,17 +1,16 @@
# Project informations
sonar.organization=llaumgui
sonar.projectKey=llaumgui_seedboxsync
sonar.projectName=SeedboxSync
sonar.version=3.0.1
sonar.organization=llaumgui

# Project URLs
sonar.host.url=https://sonarcloud.io/project/overview?id=llaumgui_seedboxsync
sonar.links.homepage=https://github.com/llaumgui/seedboxsync
sonar.links.ci=https://github.com/llaumgui/seedboxsync/actions
sonar.links.issue=https://github.com/llaumgui/seedboxsync/issues
# This is the name and version displayed in the SonarCloud UI.
sonar.projectName=SeedboxSync
sonar.projectVersion=3.0.1

# Sources
# Path is relative to the sonar-project.properties file. Replace "\" by "/" on Windows.
sonar.sources=seedboxsync
sonar.tests=tests
sonar.exclusions=tests/**/*,docs/**/*
sonar.python.coverage.reportPaths=coverage.xml

# Encoding of the source code. Default is default system encoding
#sonar.sourceEncoding=UTF-8

0 comments on commit f0e3d96

Please sign in to comment.