Commit 407cd42
Stop failing the build on low/moderate NuGet audit advisories
The default NuGetAuditLevel is "low", which combined with
TreatWarningsAsErrors=true causes restore-time NU1901/NU1902 warnings
for low- and moderate-severity transitive package advisories to fail
the build. We saw this with NuGet.Packaging/NuGet.Protocol 7.0.1
pulled in transitively by tooling - we cannot upgrade those without
breaking other constraints, and the advisories are not actionable.
Set NuGetAuditLevel=high so only high- and critical-severity audit
advisories surface (and still fail the build via TreatWarningsAsErrors).
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent 2a60bf9 commit 407cd42
1 file changed
Lines changed: 8 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
22 | 30 | | |
23 | 31 | | |
24 | 32 | | |
| |||
0 commit comments