File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -84,13 +84,21 @@ jobs:
8484 run : |
8585 echo "" > coverage-badge.md
8686 cat coverage-badge.md >> README.md
87-
88- - name : Sonarqube (SonarCloud)
89- if : matrix.platform.name == 'MacOS'
90- uses : SonarSource/sonarqube-scan-action@v4.2.1
87+
88+ sonarcloud :
89+ name : SonarCloud
90+ runs-on : ubuntu-24.04
91+ needs : build
92+ steps :
93+ - uses : actions/checkout@v4
94+ with :
95+ # Disabling shallow clone is recommended for improving relevancy of reporting
96+ fetch-depth : 0
97+ - name : SonarCloud Scan
98+ uses : SonarSource/sonarcloud-github-action@v2
9199 env :
92- SONAR_TOKEN : ${{ secrets.SONAR_TOKEN }}
93-
100+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
101+ SONAR_TOKEN : ${{ secrets.SONAR_TOKEN }}
94102
95103 publish_badge :
96104 runs-on : ubuntu-24.04
You can’t perform that action at this time.
0 commit comments