1
0
mirror of https://github.com/bitwarden/server.git synced 2024-11-24 12:35:25 +01: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
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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