From 9e167cdfb17b310c6fc8e7c7aa564c330a0b0c08 Mon Sep 17 00:00:00 2001 From: Curtis Carter Date: Sat, 13 Jul 2024 18:05:00 -0500 Subject: [PATCH] Bump Dependencies --- .../Configuration/BuildErrorSettings.cs | 14 +++++++++----- Src/NuGetDefense.Lib/NuGetDefense.Lib.csproj | 10 +++++----- Src/NuGetDefense.Lib/Scanner.cs | 2 +- Src/NuGetDefense/NuGetDefense.csproj | 6 +++--- Src/NuGetDefense/NuGetDefense.nuspec | 2 +- Src/NuGetDefenseTests/NuGetDefenseTests.csproj | 4 ++-- 6 files changed, 21 insertions(+), 17 deletions(-) diff --git a/Src/NuGetDefense.Lib/Configuration/BuildErrorSettings.cs b/Src/NuGetDefense.Lib/Configuration/BuildErrorSettings.cs index 2b36249f..f02bfa6f 100644 --- a/Src/NuGetDefense.Lib/Configuration/BuildErrorSettings.cs +++ b/Src/NuGetDefense.Lib/Configuration/BuildErrorSettings.cs @@ -8,11 +8,15 @@ public Severity ErrorSeverityThreshold { get { - if (Cvss3Threshold > 8.9M) return Severity.Critical; - if (Cvss3Threshold > 6.9M) return Severity.High; - if (Cvss3Threshold > 3.9M) return Severity.Medium; - if (Cvss3Threshold > 0) return Severity.Low; - return Cvss3Threshold < 0 ? Severity.Any : Severity.None; + return Cvss3Threshold switch + { + > 8.9M => Severity.Critical, + > 6.9M => Severity.High, + > 3.9M => Severity.Medium, + > 0 => Severity.Low, + 0 => Severity.None, + < 0 => Severity.Any + }; } set { diff --git a/Src/NuGetDefense.Lib/NuGetDefense.Lib.csproj b/Src/NuGetDefense.Lib/NuGetDefense.Lib.csproj index 21ddad13..a4b7c6cd 100644 --- a/Src/NuGetDefense.Lib/NuGetDefense.Lib.csproj +++ b/Src/NuGetDefense.Lib/NuGetDefense.Lib.csproj @@ -23,7 +23,7 @@ NuGetDefense ~ Check for Known Vulnerabilities at Build NuGetDefense was inspired by [OWASP SafeNuGet](https://nuget.org/packages/SafeNuGet/) but aims to check with multiple sources for known vulnerabilities. Curtis Carter 2024 - 4.1.3 + 4.1.3.1 git README.md @@ -37,10 +37,10 @@ runtime; build; native; contentfiles; analyzers; buildtransitive - - - - + + + + diff --git a/Src/NuGetDefense.Lib/Scanner.cs b/Src/NuGetDefense.Lib/Scanner.cs index 6ed42b31..49cb7285 100644 --- a/Src/NuGetDefense.Lib/Scanner.cs +++ b/Src/NuGetDefense.Lib/Scanner.cs @@ -22,7 +22,7 @@ namespace NuGetDefense; public class Scanner { - public const string Version = "4.1.3"; + public const string Version = "4.1.3.1"; public const string UserAgentString = @$"NuGetDefense/{Version}"; public const string DefaultSettingsFileName = "NuGetDefense.json"; public const string DefaultVulnerabilityDataFileName = "VulnerabilityData.bin"; diff --git a/Src/NuGetDefense/NuGetDefense.csproj b/Src/NuGetDefense/NuGetDefense.csproj index 303bf807..310ae5f9 100644 --- a/Src/NuGetDefense/NuGetDefense.csproj +++ b/Src/NuGetDefense/NuGetDefense.csproj @@ -21,8 +21,8 @@ true snupkg enable - 4.1.3 - 4.1.3 + 4.1.3.1 + 4.1.3.1 icon.png @@ -37,7 +37,7 @@ NuGetDefense.Tool true nugetdefense - 4.1.3 + 4.1.3.1 README.md diff --git a/Src/NuGetDefense/NuGetDefense.nuspec b/Src/NuGetDefense/NuGetDefense.nuspec index f1b31b3c..b27a47c0 100644 --- a/Src/NuGetDefense/NuGetDefense.nuspec +++ b/Src/NuGetDefense/NuGetDefense.nuspec @@ -3,7 +3,7 @@ NuGetDefense NuGetDefense - 4.1.3 + 4.1.3.1 Curtis Carter Curtis Carter https://digitalcoyote.github.io/NuGetDefense/ diff --git a/Src/NuGetDefenseTests/NuGetDefenseTests.csproj b/Src/NuGetDefenseTests/NuGetDefenseTests.csproj index 805aeed7..04a1ac1d 100644 --- a/Src/NuGetDefenseTests/NuGetDefenseTests.csproj +++ b/Src/NuGetDefenseTests/NuGetDefenseTests.csproj @@ -17,8 +17,8 @@ - - + + all runtime; build; native; contentfiles; analyzers; buildtransitive