Skip to content

Commit 4521722

Browse files
authored
Update Sonarcloud to new action (openwallet-foundation#3390)
Signed-off-by: Ry Jones <[email protected]>
1 parent 293f397 commit 4521722

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

.github/workflows/sonar-merge-main.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Sonar Scan and Coverage
1+
name: Sonar Scan and Coverage on merge to main
22
on:
33
push:
44
branches:
@@ -20,7 +20,7 @@ jobs:
2020
os: "ubuntu-latest"
2121
is_pr: "false"
2222
- name: SonarCloud Scan
23-
uses: SonarSource/sonarcloud-github-action@master
23+
uses: SonarSource/sonarqube-scan-action@latest
2424
env:
2525
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2626
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
@@ -29,4 +29,4 @@ jobs:
2929
-Dsonar.python.coverage.reportPaths=test-reports/coverage.xml
3030
-Dsonar.coverage.exclusions=**/tests/**,**/demo/**,**/docs/**,**/docker/**,**/scripts/**,**/scenarios/**
3131
-Dsonar.cpd.exclusions=**/tests/**,**/demo/**,**/docs/**,**/docker/**,**/scripts/**,**/scenarios/**
32-
-Dsonar.sources=./
32+
-Dsonar.sources=./

.github/workflows/sonar-pr.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Sonar Scan and Coverage
1+
name: Sonar Scan and Coverage on PRs
22

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

0 commit comments

Comments
 (0)