Skip to content

Commit db1a60b

Browse files
committed
Remove ResolveAsRoot
1 parent 049a176 commit db1a60b

1 file changed

Lines changed: 1 addition & 6 deletions

File tree

README.md

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -86,18 +86,13 @@ To include .NET test coverage in the analysis of SonarScanner for .NET, the foll
8686
$ErrorActionPreference = "Stop"
8787
$PSNativeCommandUseErrorActionPreference = $true
8888
# Add /d:sonar.cs.vscoveragexml.reportsPaths=coverage.xml
89-
${{ runner.temp }}\scanner\dotnet-sonarscanner begin /k:"rufer7_github-sonarcloud-integration" /o:"rufer7" /d:sonar.token="${{ secrets.SONAR_TOKEN }}" /d:sonar.host.url="https://sonarcloud.io" /d:sonar.projectBaseDir="D:\a\github-sonarcloud-integration\github-sonarcloud-integration" /d:sonar.cs.vscoveragexml.reportsPaths=coverage.xml /d:sonar.terraform.provider.azure.version=3.100.0 /d:sonar.sca.resolveAsRoot=true
89+
${{ runner.temp }}\scanner\dotnet-sonarscanner begin /k:"rufer7_github-sonarcloud-integration" /o:"rufer7" /d:sonar.token="${{ secrets.SONAR_TOKEN }}" /d:sonar.host.url="https://sonarcloud.io" /d:sonar.projectBaseDir="D:\a\github-sonarcloud-integration\github-sonarcloud-integration" /d:sonar.cs.vscoveragexml.reportsPaths=coverage.xml /d:sonar.terraform.provider.azure.version=3.100.0
9090
dotnet build .\src\ArbitrarySolution.sln --configuration Release
9191
# Execute tests and collect coverage
9292
dotnet-coverage collect 'dotnet test .\src\ArbitraryProject.Tests\ArbitraryProject.Tests.csproj' -f xml -o 'coverage.xml'
9393
${{ runner.temp }}\scanner\dotnet-sonarscanner end /d:sonar.token="${{ secrets.SONAR_TOKEN }}"
9494
```
9595

96-
#### Software Composition Analysis (SCA)
97-
98-
> [!IMPORTANT]
99-
> Currently, it's required to set `sonar.sca.resolveAsRoot=true` in the `dotnet-sonarscanner` begin step to avoid `No lockfile was found for 'PATH_TO_PROJECT_FILE' (nuget)` warning on `Dependency Risks` and `Inventory` > `Dependencies` tabs
100-
10196
## Scan Results
10297

10398
### SonarQube Cloud

0 commit comments

Comments
 (0)