8000 Backport NugetAudit settings · dotnet/SqlClient@d60c4cb · GitHub
[go: up one dir, main page]

Skip to content

Commit d60c4cb

Browse files
committed
Backport NugetAudit settings
1 parent cfb007d commit d60c4cb

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

src/Directory.Build.props

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,17 @@
7171
<DefineConstants>$(DefineConstants);ENCLAVE_SIMULATOR</DefineConstants>
7272
</PropertyGroup>
7373

74-
<!-- Audit Settings -->
74+
<!-- NuGet Audit Settings -->
75+
<PropertyGroup Condition="'$(TF_BUILD)' == 'true'">
76+
<!--
77+
ADO does not support audit/vulnerability feeds, so the audit feed is specified (in
78+
nuget.config) as nuget.org. OneBranch default network isolation does not allow connections
79+
to nuget.org. To avoid this issue, we will disable auditing for official builds, but leave it
80+
enabled for local builds.
81+
@TODO: If/when auditing is enabled for central feeds services, this can be removed.
82+
-->
83+
<NuGetAudit>false</NuGetAudit>
84+
</PropertyGroup>
7585
<PropertyGroup>
7686
<NuGetAuditMode>all</NuGetAuditMode>
7787
</PropertyGroup>

0 commit comments

Comments
 (0)
0