Skip to content

Commit

Permalink
Merge pull request #159 from vil02/migrate_to_sonarqube-scan-action
Browse files Browse the repository at this point in the history
chore: migrate to `sonarqube-scan-action`
  • Loading branch information
vil02 authored Dec 5, 2024
2 parents 32da618 + 7b000d4 commit 0044b58
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 10 deletions.
11 changes: 2 additions & 9 deletions .github/workflows/third_party_checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,18 +35,11 @@ jobs:
run: |
./generate_coverage_data.sh
- name: Fix code coverage paths for SonarCloud
# yamllint disable rule:line-length
run: |
cp coverage.xml coverage_for_sonarcloud.xml
sed -i 's/\/home\/runner\/work\/puzzle_generator\/puzzle_generator/\/github\/workspace/g' coverage_for_sonarcloud.xml
# yamllint enable rule:line-length

- name: SonarCloud Scan
if: "! github.event.pull_request.head.repo.fork "
uses: SonarSource/sonarcloud-github-action@v4
uses: SonarSource/sonarqube-scan-action@v4
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_HOST_URL: ${{ vars.SONAR_HOST_URL }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}

- name: Upload coverage report to Codecov
Expand Down
2 changes: 1 addition & 1 deletion sonar-project.properties
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@ sonar.organization=vil02

sonar.exclusions=coverage_for_sonarcloud.xml
sonar.coverage.exclusions=**/tests/**
sonar.python.coverage.reportPaths=coverage_for_sonarcloud.xml
sonar.python.coverage.reportPaths=coverage.xml
sonar.python.version=3.10, 3.11

0 comments on commit 0044b58

Please sign in to comment.