Skip to content

Commit a1c7a47

Browse files
committed
dotnet-build: disable audit using an environment variable
aspnetcore build invokes MSBuild twice, the first time to build repotasks. It's not possible to customize that command line, in particular, we can't suppress package audit. It makes the build die with "Package 'System.Formats.Asn1' 8.0.0 has a known high severity vulnerability", which we can't do anything about downstream. So disable audit using an environment variable, which will apply to all MSBuild invocations. Do this for all projects, since a similar issue exists for SDK. Signed-off-by: Ilya Leoshkevich <[email protected]>
1 parent 4f46b58 commit a1c7a47

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

dotnet-build

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,6 @@ function build_aspnetcore {
205205
--configuration "$aspnetcore_conf"
206206
--pack
207207
"/p:DotNetAssetRootUrl=file://$DOWNLOADDIR/"
208-
"/p:NuGetAudit=false"
209208
)
210209
if [ "$aspnetcore_build_id" != "" ]; then
211210
aspnetcore_build_flags+=(
@@ -268,6 +267,7 @@ else
268267
projects=(runtime msbuild roslyn aspnetcore sdk)
269268
fi
270269

270+
export NuGetAudit=false
271271
for project in "${projects[@]}"; do
272272
eval "build_${project}"
273273
done

0 commit comments

Comments
 (0)