File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -44,13 +44,12 @@ jobs:
4444 dotnet tool install --global dotnet-coverage
4545 - name : Build and analyze
4646 env :
47- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any
4847 SONAR_TOKEN : ${{ secrets.SONAR_TOKEN }}
4948 shell : pwsh
5049 run : |
5150 $ErrorActionPreference = "Stop"
5251 $PSNativeCommandUseErrorActionPreference = $true
53- ${{ 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
52+ ${{ runner.temp }}\scanner\dotnet-sonarscanner begin /k:"rufer7_github-sonarcloud-integration" /o:"rufer7" /d:sonar.token="$env: 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
5453 dotnet build .\src\ArbitrarySolution.sln --configuration Release
5554 dotnet-coverage collect 'dotnet test .\src\ArbitraryProject.Tests\ArbitraryProject.Tests.csproj' -f xml -o 'coverage.xml'
56- ${{ runner.temp }}\scanner\dotnet-sonarscanner end /d:sonar.token="${{ secrets. SONAR_TOKEN }} "
55+ ${{ runner.temp }}\scanner\dotnet-sonarscanner end /d:sonar.token="$env: SONAR_TOKEN"
You can’t perform that action at this time.
0 commit comments