1
0
mirror of https://github.com/bitwarden/server synced 2025-12-24 12:13:17 +00:00

Explicitly specify Sonar source paths (#4516)

This commit is contained in:
Matt Bishop
2024-07-16 12:01:12 -04:00
committed by GitHub
parent 9960874d2d
commit 4d210170bb

View File

@@ -83,7 +83,10 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
dotnet-sonarscanner begin /k:"${{ github.repository_owner }}_${{ github.event.repository.name }}" \
/d:sonar.tests=test/ /d:sonar.sources=. /d:sonar.test.inclusions=test/ /d:sonar.exclusions=test/ \
/d:sonar.tests=test/,bitwarden_license/test/ \
/d:sonar.sources=dev/,perf/,scripts/,src/,bitwarden_license/src/,util/ \
/d:sonar.test.inclusions=test/,bitwarden_license/test/ \
/d:sonar.exclusions=test/,bitwarden_license/test/ \
/o:"${{ github.repository_owner }}" /d:sonar.token="${{ secrets.SONAR_TOKEN }}" \
/d:sonar.host.url="https://sonarcloud.io"
dotnet build