Repository navigation
Re-enable NuGet audit for release/10.0.3xx - #6637
Merged
Merged
Conversation
Remove NuGetAudit=false and NuGetAuditSuppress workarounds that were added to unblock builds. NuGet audit should be active to catch vulnerabilities. - eng/tools/Directory.Build.props: Remove NuGetAuditSuppress items for System.Security.Cryptography.Xml advisories - src/sdk/Directory.Build.props: Remove two NuGetAudit=false blocks (refs dotnet/sdk#51465, dotnet/sdk#51466) - src/sourcelink/src/Directory.Build.props: Remove NuGetAudit=false Co-authored-by: Copilot <[email protected]>
…t=false The root Directory.Build.props also had an unconditional NuGetAudit=false that was added to unblock builds. Remove it and add nuget.org as an explicit NuGetAuditSources so vulnerability data is fetched even when nuget.org is not in the project's restore sources. Co-authored-by: Copilot <[email protected]>
Co-authored-by: Copilot <[email protected]>
mmitche
reviewed
May 18, 2026
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, test) 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
Member
|
The same NU1903 The 4xx branch has the older per-GHSA suppression approach from #6267 (only covers @marcpopMSFT — are you planning a 4xx counterpart to this PR? The same pattern (disable NuGet Audit on official builds) should unblock it. Happy to help create one if useful. |
lewing
approved these changes
May 20, 2026
The WarningsNotAsErrors issue is an MSBuild bug (dotnet/msbuild#10801), not a NuGet Restore issue. Update comment to accurately attribute the root cause. Co-authored-by: Copilot <[email protected]>
Updated comment to clarify NuGet audit handling in official builds.
marcpopMSFT
enabled auto-merge (squash)
May 20, 2026 21:59
akoeplinger
approved these changes
May 21, 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.
This is the release/10.0.3xx counterpart to #6620.
Removes the NuGet audit workarounds (NuGetAudit=false and NuGetAuditSuppress items) that were added to unblock builds via internal PRs 60423 and 60455. NuGet audit should be re-enabled to catch vulnerabilities.
Changes