Repository navigation
Configure nuget audit to not block CI builds but still fail PR builds - #6620
Merged
Merged
Conversation
marcpopMSFT
commented
May 14, 2026
Member
- Remove nuget audit disablement that was put in place for servicing
- Check what fails in the PR and CI builds
- See if we can configure WarnNotAsError for these warnings in the official build
NuGet Restore does not respect WarningsNotAsErrors, so audit findings become errors via TreatWarningsAsErrors with no way to downgrade them. Disable NuGetAudit in official builds for VMR infrastructure (eng/tools) and product repos (sdk, sourcelink) that previously had audit disabled unconditionally. Keep audit enabled for local/CI dev builds so developers can see vulnerability warnings. Co-authored-by: Copilot <[email protected]>
vseanreesermsft
approved these changes
May 20, 2026
nkolev92
reviewed
May 20, 2026
nkolev92
reviewed
May 20, 2026
The WarningsNotAsErrors issue is an MSBuild bug (dotnet/msbuild#10801), not a NuGet Restore issue. Update comments to accurately attribute the root cause. Co-authored-by: Copilot <[email protected]>
marcpopMSFT
enabled auto-merge (squash)
May 20, 2026 21:59
wtgodbe
approved these changes
May 20, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.