File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2222 DOTNET_CLI_TELEMETRY_OPTOUT : 1
2323 DOTNET_NOLOGO : true
2424 SOLUTION_FILE : ' src/Steeltoe.All.slnx'
25+ NUGET_VULNERABLE_PACKAGE_WARNINGS : ' "NU1901;NU1902;NU1903;NU1904"'
2526 SONAR_TEST_ARGS : >-
2627 --no-build --configuration Release --collect "XPlat Code Coverage" --logger trx --results-directory ${{ github.workspace }}/TestOutput
2728 --settings coverlet.runsettings -- DataCollectionRunSettings.DataCollectors.DataCollector.Configuration.UseSourceLink=false
6667 # Sonar: Shallow clones should be disabled for a better relevancy of analysis.
6768 fetch-depth : 0
6869
69- - name : Restore packages
70- run : dotnet restore ${{ env.SOLUTION_FILE }} /p:Configuration=Release /p:NuGetAudit=false --verbosity minimal
71-
7270 - name : Begin Sonar .NET scanner
7371 id : sonar_begin
7472 env :
7775 dotnet sonarscanner begin /k:"SteeltoeOSS_steeltoe" /o:"steeltoeoss" /d:sonar.token="${{ secrets.SONAR_TOKEN }}"
7876 /d:sonar.host.url="https://sonarcloud.io" /d:sonar.cs.opencover.reportsPaths=**/coverage.opencover.xml
7977
78+ - name : Restore packages
79+ run : dotnet restore ${{ env.SOLUTION_FILE }} --verbosity minimal /p:Configuration=Release /p:NuGetAuditLevel=low /p:WarningsNotAsErrors='${{ env.NUGET_VULNERABLE_PACKAGE_WARNINGS }}'
80+
8081 - name : Build solution
81- run : dotnet build ${{ env.SOLUTION_FILE }} --no-restore --configuration Release --verbosity minimal
82+ run : dotnet build ${{ env.SOLUTION_FILE }} --no-restore --configuration Release --verbosity minimal /p:NuGetAuditLevel=low /p:WarningsNotAsErrors='${{ env.NUGET_VULNERABLE_PACKAGE_WARNINGS }}'
8283
8384 - name : Test
8485 run : dotnet test ${{ env.SOLUTION_FILE }} --filter "Category!=MemoryDumps" ${{ env.SONAR_TEST_ARGS }}
You can’t perform that action at this time.
0 commit comments