Skip to content

Configure nuget audit to not block CI builds but still fail PR builds - #6620

Merged
marcpopMSFT merged 4 commits into
release/10.0.2xxfrom
marcpopMSFT-modifyaudit
May 21, 2026
Merged

marcpopMSFT merged 4 commits into
release/10.0.2xxfrom
marcpopMSFT-modifyaudit

Conversation

@marcpopMSFT

Copy link
Copy Markdown
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

@marcpopMSFT
marcpopMSFT requested review from a team as code owners May 14, 2026 18:35
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]>
Comment thread src/sdk/Directory.Build.props Resolved
Comment thread eng/tools/Directory.Build.props Resolved
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
marcpopMSFT merged commit 9c8c4a6 into release/10.0.2xx May 21, 2026
8 checks passed
@marcpopMSFT
marcpopMSFT deleted the marcpopMSFT-modifyaudit branch May 21, 2026 00:13
@dotnet-policy-service
dotnet-policy-service Bot requested a review from a team May 21, 2026 00:13
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.

4 participants