Skip to content

Commit c4d84f2

Browse files
authored
Update default info for NuGetAuditMode (#3426)
1 parent d9fdafa commit c4d84f2

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

docs/concepts/Auditing-Packages.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ description: How to audit package dependencies for security vulnerabilities and
44
author: JonDouglas
55
ms.author: jodou
66
ms.topic: conceptual
7-
ms.date: 02/11/2025
7+
ms.date: 05/05/2025
88
---
99

1010
# Auditing package dependencies for security vulnerabilities
@@ -44,10 +44,14 @@ We recommend that audit is configured at a repository level.
4444

4545
| MSBuild Property | Default | Possible values | Notes |
4646
|------------------|---------|-----------------|-------|
47-
| NuGetAuditMode | direct | `direct` and `all` | If you'd like to audit top-level dependencies only, you can set the value to `direct`. NuGetAuditMode is not applicable for packages.config projects. |
47+
| NuGetAuditMode | See 1 below | `direct` and `all` | If you'd like to audit top-level dependencies only, you can set the value to `direct`. NuGetAuditMode is not applicable for packages.config projects. |
4848
| NuGetAuditLevel | low | `low`, `moderate`, `high`, and `critical` | The minimum severity level to report. If you'd like to see `moderate`, `high`, and `critical` advisories (exclude `low`), set the value to `moderate` |
4949
| NuGetAudit | true | `true` and `false` | If you wish to not receive security audit reports, you can opt-out of the experience entirely by setting the value to `false` |
5050

51+
1. `NuGetAuditMode` defaults to `all` when a project targets `net10.0` or higher.
52+
Otherwise `NuGetAuditMode` defaults to `direct`.
53+
When a project multi-targets, if any one target framework selects `all`, then audit will use this value for all target frameworks.
54+
5155
#### Audit Sources
5256

5357
Restore downloads a server's [`VulnerabilityInfo` resource](../api/vulnerability-info.md) to check against the list of packages each project is using.

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy