Skip to content

Enable NuGet audit in arcade SDK and add audit sources to key repos - #7171

Merged
ViktorHofer merged 10 commits into
mainfrom
nuget-audit-expansion
Jun 29, 2026
Merged

ViktorHofer merged 10 commits into
mainfrom
nuget-audit-expansion

Conversation

@marcpopMSFT

Copy link
Copy Markdown
Member

Summary

Expands NuGet audit support from the VMR orchestrator (PRs #6987 and #6785) to individual repo builds.

Arcade SDK — central MSBuild properties

Adds NuGet audit defaults to ProjectDefaults.props so all repos using the Arcade SDK automatically get:

  • NuGetAuditMode=all — audit transitive dependencies
  • NuGetAudit=false for offline/source-build (no network access to vulnerability DB)
  • NuGetAudit=false for official builds (workaround for MSBuild #10801 where WarningsNotAsErrors doesn't apply to NuGet warnings)

Per-repo NuGet.config — audit sources

Adds <auditSources> section pointing to https://api.nuget.org/v3/index.json for:

  • roslyn
  • aspnetcore
  • runtime
  • sdk
  • windowsdesktop

This is required per-repo because NuGet doesn't support setting audit sources via MSBuild properties.

Context

Add NuGet audit MSBuild properties to arcade's ProjectDefaults.props so all
repos using the Arcade SDK get security vulnerability auditing by default:
- NuGetAuditMode=all (audit transitive dependencies)
- NuGetAudit=false for offline/source-build (no network access)
- NuGetAudit=false for official builds (MSBuild WarningsNotAsErrors bug)

Add auditSources section to NuGet.config for roslyn, aspnetcore, runtime,
sdk, and windowsdesktop pointing to nuget.org for vulnerability data.

This expands the NuGet audit support from the VMR orchestrator (PRs #6987
and #6785) to individual repo builds.

Co-authored-by: Copilot <[email protected]>
Copilot AI review requested due to automatic review settings June 10, 2026 22:19
@dotnet-policy-service
dotnet-policy-service Bot requested review from a team June 10, 2026 22:19

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Enables NuGet package vulnerability auditing for Arcade SDK consumers and configures key repos to use nuget.org as the audit advisory source so PR builds can retrieve vulnerability data.

Changes:

  • Add default NuGet audit settings to Arcade SDK ProjectDefaults.props (audit mode + conditions to disable in offline and official builds).
  • Add <auditSources> pointing to https://api.nuget.org/v3/index.json in NuGet.config for roslyn, aspnetcore, runtime, sdk, and windowsdesktop.

Reviewed changes

Copilot reviewed 6 out of 6 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
src/arcade/src/Microsoft.DotNet.Arcade.Sdk/tools/ProjectDefaults.props Introduces Arcade-wide NuGet audit defaults and build-conditional disabling.
src/aspnetcore/NuGet.config Adds nuget.org audit source so advisories can be fetched during restore.
src/roslyn/NuGet.config Adds nuget.org audit source so advisories can be fetched during restore.
src/runtime/NuGet.config Adds nuget.org audit source so advisories can be fetched during restore.
src/sdk/NuGet.config Adds nuget.org audit source so advisories can be fetched during restore.
src/windowsdesktop/NuGet.config Adds nuget.org audit source so advisories can be fetched during restore.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@marcpopMSFT
marcpopMSFT requested a review from ViktorHofer June 10, 2026 22:31
@dotnet-policy-service
dotnet-policy-service Bot requested review from a team June 11, 2026 07:14
@dotnet-policy-service
dotnet-policy-service Bot requested review from a team June 11, 2026 07:21
@ViktorHofer
ViktorHofer enabled auto-merge (squash) June 11, 2026 07:55
@dotnet-policy-service
dotnet-policy-service Bot requested review from a team June 11, 2026 07:56
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.

8 participants