From 9ed34781fe3376359db2131a1b3b365c3bb3b688 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tau=20G=C3=A4rtli?= Date: Thu, 30 Jan 2025 10:39:48 +0100 Subject: [PATCH] Disable analyzers for trimming test --- .github/workflows/build.yml | 7 +++++-- Analyzers.props | 2 +- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 137bad11..0ef08da6 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -50,10 +50,13 @@ jobs: - uses: actions/checkout@v4 - uses: actions/setup-dotnet@v4 name: Install Current .NET SDK + # Building the analyzers (the code fix projects in particular) for the linux runtime + # results in some super-old System.* packages with vulnerabilities being pulled in. + # Our analyzers don't do anything wrt. trimming and AOT so it's safe to disable them. - name: Run trimming test - run: dotnet publish -c Release Funcky.TrimmingTest -r linux-x64 --self-contained /p:TreatWarningsAsErrors=true + run: dotnet publish -c Release Funcky.TrimmingTest -r linux-x64 --self-contained /p:TreatWarningsAsErrors=true /p:FunckyDisableAnalyzers=true - name: Run AOT test - run: dotnet publish -c Release Funcky.TrimmingTest -r linux-x64 --self-contained /p:TreatWarningsAsErrors=true /p:FunckyTestAot=true + run: dotnet publish -c Release Funcky.TrimmingTest -r linux-x64 --self-contained /p:TreatWarningsAsErrors=true /p:FunckyDisableAnalyzers=true /p:FunckyTestAot=true nupkg: name: Generate NuGet Packages diff --git a/Analyzers.props b/Analyzers.props index 5c3f9bd7..b036e63e 100644 --- a/Analyzers.props +++ b/Analyzers.props @@ -1,6 +1,6 @@ - +