Fixed a vulnerable transitive NuGet dependency in the build script

This commit is contained in:
Thorsten Sommer 2026-08-04 08:10:23 +02:00
parent 21d08c4b35
commit 1698d00f1b
Signed by untrusted user who does not match committer: tsommer
GPG Key ID: 371BBA77A02C0108
2 changed files with 11 additions and 0 deletions

View File

@ -12,6 +12,9 @@
<ItemGroup>
<PackageReference Include="Cocona" Version="2.2.0" />
<!-- Pins Cocona's transitive Microsoft.Extensions.Hosting 6.0.0, which pulled in the vulnerable System.Text.Json 6.0.0 (GHSA-8g4q-xg66-9fp4) -->
<PackageReference Include="Microsoft.Extensions.Hosting" Version="9.0.18" />
</ItemGroup>
<ItemGroup>

View File

@ -0,0 +1,8 @@
<Project>
<PropertyGroup>
<!-- Audit direct and transitive packages, so vulnerable transitive dependencies surface during restore instead of only in the IDE -->
<NuGetAuditMode>all</NuGetAuditMode>
</PropertyGroup>
</Project>