Skip to content

Commit 96b33b6

Browse files
authored
Backport NugetAudit settings (#3320)
1 parent 1c0b2f6 commit 96b33b6

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

0 commit comments

Comments
 (0)