build: don't fail restore on low/moderate/high NuGet audit advisories

.NET 10's NuGet audit promotes vulnerable transitive packages to NU1901-1904
warnings during restore; the app projects set TreatWarningsAsErrors=true, so
restore failed on NCalcSync 5.11.0 (moderate) and SQLitePCLRaw 2.1.10 (high).

Demote NU1901/NU1902/NU1903 to warnings in Directory.Build.props (NU1904
critical still errors). Also COPY Directory.Build.props/.targets in the
Dockerfile before restore so the image build honors the same props as
local/CI builds (it previously copied only the .sln). Underlying deps tracked
in #8.

Refs #4, #8.
This commit is contained in:
2026-06-26 22:22:48 +02:00
parent 9ad0c4a393
commit 46e2fbf0f7
2 changed files with 10 additions and 0 deletions
+3
View File
@@ -24,6 +24,9 @@ COPY scripts/scripted-schedules/. /app/scripted-schedules/
# copy csproj and restore as distinct layers
COPY *.sln .
# repo-wide MSBuild props/targets (incl. NuGet-audit warning exemptions) must be
# present before restore so the image build matches local/CI builds
COPY Directory.Build.props Directory.Build.targets ./
COPY artwork/* ./artwork/
COPY ErsatzTV/*.csproj ./ErsatzTV/
COPY ErsatzTV.Application/*.csproj ./ErsatzTV.Application/