Skip to content

Commit eef8636

Browse files
authored
Fixing audit sources condition (#3322)
1 parent 965e5ff commit eef8636

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/Directory.Build.props

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,15 +72,17 @@
7272
</PropertyGroup>
7373

7474
<!-- NuGet Audit Settings -->
75-
<PropertyGroup>
75+
<PropertyGroup Condition="'$(TF_BUILD)' == 'true'">
7676
<!--
7777
ADO does not support audit/vulnerability feeds, so the audit feed is specified (in
7878
nuget.config) as nuget.org. OneBranch default network isolation does not allow connections
7979
to nuget.org. To avoid this issue, we will disable auditing for official builds, but leave it
8080
enabled for local builds.
8181
@TODO: If/when auditing is enabled for central feeds services, this can be removed.
8282
-->
83-
<NuGetAudit Condition="'$(TF_BUILD)' == 'true'">false</NuGetAudit>
83+
<NuGetAudit>false</NuGetAudit>
84+
</PropertyGroup>
85+
<PropertyGroup>
8486
<NuGetAuditMode>all</NuGetAuditMode>
8587
</PropertyGroup>
8688

0 commit comments

Comments
 (0)