Repository navigation
Enable NuGet audit in arcade SDK and add audit sources to key repos - #7171
Merged
Merged
Conversation
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]>
wtgodbe
approved these changes
Jun 10, 2026
Contributor
There was a problem hiding this comment.
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 tohttps://api.nuget.org/v3/index.jsonin 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.
ViktorHofer
approved these changes
Jun 11, 2026
Evangelink
approved these changes
Jun 11, 2026
ViktorHofer
enabled auto-merge (squash)
June 11, 2026 07:55
This was referenced Jul 1, 2026
This was referenced Jul 8, 2026
This was referenced Jul 27, 2026
This was referenced Aug 11, 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.
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.propsso all repos using the Arcade SDK automatically get:NuGetAuditMode=all— audit transitive dependenciesNuGetAudit=falsefor offline/source-build (no network access to vulnerability DB)NuGetAudit=falsefor official builds (workaround for MSBuild #10801 where WarningsNotAsErrors doesn't apply to NuGet warnings)Per-repo NuGet.config — audit sources
Adds
<auditSources>section pointing tohttps://api.nuget.org/v3/index.jsonfor:This is required per-repo because NuGet doesn't support setting audit sources via MSBuild properties.
Context