Skip to content

Commit 4a6c9f4

Browse files
authored
Backport NugetAudit settings (#3318)
1 parent 0697f41 commit 4a6c9f4

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

src/Directory.Build.props

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,8 +67,18 @@
6767
<PropertyGroup Condition="'$(BuildSimulator)' == 'true'">
6868
<DefineConstants>$(DefineConstants);ENCLAVE_SIMULATOR</DefineConstants>
6969
</PropertyGroup>
70-
71-
<!-- Audit Settings -->
70+
71+
<!-- NuGet Audit Settings -->
72+
<PropertyGroup Condition="'$(TF_BUILD)' == 'true'">
73+
<!--
74+
ADO does not support audit/vulnerability feeds, so the audit feed is specified (in
75+
nuget.config) as nuget.org. OneBranch default network isolation does not allow connections
76+
to nuget.org. To avoid this issue, we will disable auditing for official builds, but leave it
77+
enabled for local builds.
78+
@TODO: If/when auditing is enabled for central feeds services, this can be removed.
79+
-->
80+
<NuGetAudit>false</NuGetAudit>
81+
</PropertyGroup>
7282
<PropertyGroup>
7383
<NuGetAuditMode>all</NuGetAuditMode>
7484
</PropertyGroup>

0 commit comments

Comments
 (0)