Skip to content

Commit 575b2d5

Browse files
committed
ci: update sonar cloud action
1 parent 35faea6 commit 575b2d5

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed

.github/workflows/ci.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,11 @@ jobs:
1616
node-version: 22
1717
- run: npm run test:cov
1818

19-
- name: SonarQube Cloud Scan
20-
uses: SonarSource/sonarcloud-github-action@master
21-
env:
22-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
23-
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
19+
- name: SonarQube Scan
20+
uses: sonarsource/sonarqube-scan-action@v4.1.0 # Ex: v2.1.0, See the latest version at https://github.com/marketplace/actions/official-sonarqube-scan
21+
env:
22+
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
23+
SONAR_HOST_URL: ${{ vars.SONAR_HOST_URL }}
2424
check-application:
2525
runs-on: ubuntu-latest
2626
steps:

sonar-project.properties

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
sonar.projectKey=mathmelo_ci-github-actions
22
sonar.organization=mathmelo2000
3-
sonar.host.url=https://sonarcloud.io
43

54
sonar.sources=.
65
sonar.exclusions=**/*.test.js

0 commit comments

Comments
 (0)