Skip to content

Re-enable NuGet audit for release/10.0.3xx - #6637

Merged
marcpopMSFT merged 6 commits into
release/10.0.3xxfrom
reenable-nuget-audit-10.0.3xx
May 21, 2026
Merged

marcpopMSFT merged 6 commits into
release/10.0.3xxfrom
reenable-nuget-audit-10.0.3xx

Conversation

@marcpopMSFT

Copy link
Copy Markdown
Member

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

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]>
@marcpopMSFT
marcpopMSFT requested review from a team as code owners May 15, 2026 21:09
@dotnet-policy-service
dotnet-policy-service Bot requested a review from a team May 15, 2026 21:10
marcpopMSFT and others added 2 commits May 15, 2026 14:28
…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]>
Comment thread Directory.Build.props Resolved
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]>
Comment thread eng/tools/Directory.Build.props Resolved
@lewing

lewing commented May 20, 2026

Copy link
Copy Markdown
Member

The same NU1903 System.Security.Cryptography.Xml 8.0.0 issue is also blocking all release/10.0.4xx internal rolling builds — 7 consecutive days of 100% failure on Run Tests legs (~10 legs per build).

The 4xx branch has the older per-GHSA suppression approach from #6267 (only covers eng/tools/, not test/Microsoft.DotNet.Tests/), so the test project still fails.

@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.

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
marcpopMSFT enabled auto-merge (squash) May 20, 2026 21:59
@marcpopMSFT
marcpopMSFT merged commit 201502c into release/10.0.3xx May 21, 2026
8 checks passed
@marcpopMSFT
marcpopMSFT deleted the reenable-nuget-audit-10.0.3xx branch May 21, 2026 07:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants