From 9960874d2da3005e8b505e791a92454e00bf5c40 Mon Sep 17 00:00:00 2001 From: Matt Bishop Date: Tue, 16 Jul 2024 09:15:01 -0400 Subject: [PATCH] Configure Sonar tests and sources (#4505) --- .github/workflows/scan.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/scan.yml b/.github/workflows/scan.yml index aa9c189dd3..2eb09c4762 100644 --- a/.github/workflows/scan.yml +++ b/.github/workflows/scan.yml @@ -83,6 +83,7 @@ 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/ \ /o:"${{ github.repository_owner }}" /d:sonar.token="${{ secrets.SONAR_TOKEN }}" \ /d:sonar.host.url="https://sonarcloud.io" dotnet build