Skip to content

Commit

Permalink
Update Sonarcloud to new action (#3390)
Browse files Browse the repository at this point in the history
Signed-off-by: Ry Jones <[email protected]>
  • Loading branch information
ryjones authored Dec 9, 2024
1 parent 293f397 commit 4521722
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/sonar-merge-main.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Sonar Scan and Coverage
name: Sonar Scan and Coverage on merge to main
on:
push:
branches:
Expand All @@ -20,7 +20,7 @@ jobs:
os: "ubuntu-latest"
is_pr: "false"
- name: SonarCloud Scan
uses: SonarSource/sonarcloud-github-action@master
uses: SonarSource/sonarqube-scan-action@latest
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
Expand All @@ -29,4 +29,4 @@ jobs:
-Dsonar.python.coverage.reportPaths=test-reports/coverage.xml
-Dsonar.coverage.exclusions=**/tests/**,**/demo/**,**/docs/**,**/docker/**,**/scripts/**,**/scenarios/**
-Dsonar.cpd.exclusions=**/tests/**,**/demo/**,**/docs/**,**/docker/**,**/scripts/**,**/scenarios/**
-Dsonar.sources=./
-Dsonar.sources=./
6 changes: 3 additions & 3 deletions .github/workflows/sonar-pr.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Sonar Scan and Coverage
name: Sonar Scan and Coverage on PRs

on:
workflow_run:
Expand Down Expand Up @@ -58,7 +58,7 @@ jobs:
# Need to change source in coverage report because it was generated from another context
sed -i 's/\/home\/runner\/work\/acapy\/acapy\//\/github\/workspace\//g' test-reports/coverage.xml
- name: SonarCloud Scan
uses: SonarSource/sonarcloud-github-action@master
uses: SonarSource/sonarqube-scan-action@latest
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
Expand All @@ -71,4 +71,4 @@ jobs:
-Dsonar.coverage.exclusions=**/tests/**,**/demo/**,**/docs/**,**/docker/**,**/scripts/**,**/scenarios/**
-Dsonar.cpd.exclusions=**/tests/**,**/demo/**,**/docs/**,**/docker/**,**/scripts/**,**/scenarios/**
-Dsonar.python.coverage.reportPaths=test-reports/coverage.xml
-Dsonar.sources=./
-Dsonar.sources=./

0 comments on commit 4521722

Please sign in to comment.