diff --git a/.github/workflows/sonar-merge-main.yml b/.github/workflows/sonar-merge-main.yml index ef3ec3cd94..b70fb399d6 100644 --- a/.github/workflows/sonar-merge-main.yml +++ b/.github/workflows/sonar-merge-main.yml @@ -1,4 +1,4 @@ -name: Sonar Scan and Coverage +name: Sonar Scan and Coverage on merge to main on: push: branches: @@ -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 }} @@ -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=./ \ No newline at end of file + -Dsonar.sources=./ diff --git a/.github/workflows/sonar-pr.yml b/.github/workflows/sonar-pr.yml index df9f5e06ff..c7c63eac7e 100644 --- a/.github/workflows/sonar-pr.yml +++ b/.github/workflows/sonar-pr.yml @@ -1,4 +1,4 @@ -name: Sonar Scan and Coverage +name: Sonar Scan and Coverage on PRs on: workflow_run: @@ -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 }} @@ -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=./ \ No newline at end of file + -Dsonar.sources=./