Skip to content

Commit 10363ac

Browse files
fix: sets a fixed node version for SonarCloud scans (#1349)
* fix: sets a fixed node version for SonarCloud scans * fix: use the new GH action
1 parent 22b64c7 commit 10363ac

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

.github/workflows/sonar-cloud.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,17 @@ jobs:
1414
- uses: actions/checkout@v4
1515
with:
1616
fetch-depth: 0
17+
1718
# Leaving the test artifact fetching as a reference for when we implement the coverage report
1819
# - uses: actions/download-artifact@v4
1920
# with:
2021
# path: coverage
2122
# pattern: tests-artifacts-*
2223
# merge-multiple: true
24+
2325
- name: SonarCloud Scan
24-
uses: SonarSource/sonarcloud-github-action@4b4d7634dab97dcee0b75763a54a6dc92a9e6bc1
26+
# This is SonarSource/[email protected]
27+
uses: SonarSource/sonarqube-scan-action@1a6d90ebcb0e6a6b1d87e37ba693fe453195ae25
2528
env:
26-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2729
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
30+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

sonar-project.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ sonar.projectKey=metamask-sdk
33
sonar.organization=metamask
44

55
# Source
6-
sonar.sources=packages/sdk/src,packages/sdk-communication-layer/src,packages/sdk-install-modal-web/src,packages/sdk-react/src, packages/sdk-react-native/src,packages/sdk-react-ui/src,packages/sdk-socket-server-next/src
6+
sonar.sources=packages/sdk-multichain-ui/src,packages/sdk-multichain/src,packages/sdk/src,packages/sdk-communication-layer/src,packages/sdk-install-modal-web/src,packages/sdk-react/src, packages/sdk-react-native/src,packages/sdk-react-ui/src,packages/sdk-socket-server-next/src
77
sonar.exclusions=**/*.test.js,**/*.test.ts,**/*.test.tsx,**/*.sol,packages/examples/**,e2e/**,packages/truffle/**,packages/devnext/**,packages/devreactnative/**,packages/devsocket/**,packages/development-tools/**,packages/deve2e/**
88

99
# Tests

0 commit comments

Comments
 (0)