Skip to content

Commit b8d6f29

Browse files
eng(tests): add NuGetAuditMode=all to tests/Directory.Build.props
Mirror the NuGetAudit setting from src/Directory.Build.props so that transitive dependencies in test projects are also audited for known CVEs during dotnet restore. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent ef6ac8a commit b8d6f29

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

tests/Directory.Build.props

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@
1111
<Nullable>enable</Nullable>
1212
<IsPackable>false</IsPackable>
1313
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
14+
<!-- Audit direct + transitive dependencies for known CVEs during restore,
15+
matching the setting in src/Directory.Build.props. -->
16+
<NuGetAuditMode>all</NuGetAuditMode>
1417
</PropertyGroup>
1518

1619
<ItemGroup>

0 commit comments

Comments
 (0)