Skip to content

Commit

Permalink
address several Checkmarx advisory upgrades and ensure compiler does …
Browse files Browse the repository at this point in the history
…not emit CVE warnings
  • Loading branch information
Mpdreamz committed Oct 22, 2024
1 parent 3b7a967 commit 7399604
Show file tree
Hide file tree
Showing 9 changed files with 26 additions and 21 deletions.
17 changes: 9 additions & 8 deletions Directory.Packages.props
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

<ItemGroup>
<GlobalPackageReference Include="MinVer" Version="4.3.0" PrivateAssets="All" />
<GlobalPackageReference Include="Microsoft.NETFramework.ReferenceAssemblies.net462" Version="1.0.3" PrivateAssets="all"/>
<GlobalPackageReference Condition="'$(TargetFramework)' == 'net462'" Include="Microsoft.NETFramework.ReferenceAssemblies.net462" Version="1.0.3" PrivateAssets="all"/>
</ItemGroup>
<!-- Community Packages -->
<ItemGroup>
Expand Down Expand Up @@ -86,16 +86,17 @@

<!-- Microsoft/System packages -->
<ItemGroup>
<PackageVersion Include="Microsoft.AspNetCore.Hosting.Abstractions" Version="2.1.0" />
<PackageVersion Include="Microsoft.AspNetCore.Http" Version="2.1.22" />
<PackageVersion Include="Microsoft.AspNetCore.Http.Abstractions" Version="2.1.1" />
<PackageVersion Include="Microsoft.AspNetCore.Http.Extensions" Version="2.1.21" />
<PackageVersion Include="Microsoft.AspNetCore.Hosting.Abstractions" Version="2.2.0" />
<PackageVersion Include="Microsoft.AspNetCore.Http" Version="2.2.2" />
<PackageVersion Include="Microsoft.AspNetCore.Http.Abstractions" Version="2.2.0" />
<PackageVersion Include="Microsoft.AspNetCore.Http.Extensions" Version="2.2.0" />
<PackageVersion Include="Microsoft.AspNetCore.Routing.Abstractions" Version="2.2.0" />

<PackageVersion Include="Microsoft.AspNetCore.Identity.EntityFrameworkCore" Version="8.0.2" />
<PackageVersion Include="Microsoft.AspNetCore.Identity.UI" Version="8.0.2" />
<PackageVersion Include="Microsoft.AspNetCore.Mvc.Testing" Version="8.0.2" />
<PackageVersion Include="Microsoft.AspNetCore.Routing.Abstractions" Version="2.1.0" />
<PackageVersion Include="Microsoft.EntityFrameworkCore.Sqlite" Version="8.0.2" />
<PackageVersion Include="Microsoft.Extensions.Configuration.Abstractions" Version="2.1.0" />
<PackageVersion Include="Microsoft.Extensions.Configuration.Abstractions" Version="2.2.0" />
<PackageVersion Include="Microsoft.Extensions.DependencyInjection " Version="6.0.0" />
<PackageVersion Include="Microsoft.Extensions.Hosting" Version="8.0.0" />
<PackageVersion Include="Microsoft.Extensions.Hosting.Abstractions" Version="8.0.0" />
Expand All @@ -110,7 +111,7 @@
<PackageVersion Include="System.Threading.Tasks.Extensions" Version="4.5.4" />

<PackageVersion Include="Microsoft.AspNet.Identity.EntityFramework" Version="2.2.3" />
<PackageVersion Include="Microsoft.AspNet.Identity.Owin" Version="2.2.3" />
<PackageVersion Include="Microsoft.AspNet.Identity.Owin" Version="2.2.4" />
<PackageVersion Include="Microsoft.AspNet.Mvc" Version="5.2.4" />
<PackageVersion Include="Microsoft.AspNet.TelemetryCorrelation" Version="1.0.7" />
<PackageVersion Include="Microsoft.AspNet.Web.Optimization" Version="1.1.3" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
<ItemGroup>
<PackageReference Include="Azure.Messaging.ServiceBus"/>
<PackageReference Include="Microsoft.Azure.ServiceBus"/>
<PackageReference Include="Newtonsoft.Json"/>
</ItemGroup>

<ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
<ItemGroup>
<PackageReference Include="NJsonSchema"/>
<PackageReference Include="SharpZipLib"/>
<PackageReference Include="Newtonsoft.Json"/>
</ItemGroup>

<ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
<PackageReference Include="Microsoft.AspNetCore.Hosting.Abstractions" />
<PackageReference Include="Microsoft.Extensions.Configuration.Abstractions" />
<PackageReference Include="Microsoft.AspNetCore.Routing.Abstractions" />
<PackageReference Include="Microsoft.Extensions.Logging.Abstractions" VersionOverride="2.1.0" />
<PackageReference Include="Microsoft.Extensions.Logging.Abstractions" VersionOverride="2.2.0" />
</ItemGroup>
<ItemGroup Condition=" '$(TargetFramework)' == 'net6.0' ">
<FrameworkReference Include="Microsoft.AspNetCore.App" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,10 @@
</ItemGroup>

<ItemGroup Condition=" '$(TargetFramework)' == 'netstandard2.0' ">
<PackageReference Include="Microsoft.Extensions.Hosting.Abstractions" VersionOverride="2.1.0" />
<PackageReference Include="Microsoft.Extensions.Logging.Abstractions" VersionOverride="2.1.0" />
<PackageReference Include="Microsoft.Extensions.DependencyInjection " VersionOverride="2.1.0" />
<PackageReference Include="Microsoft.Extensions.Logging.Configuration" VersionOverride="2.1.0" PrivateAssets="All" />
<PackageReference Include="Microsoft.Extensions.Hosting.Abstractions" VersionOverride="2.2.0" />
<PackageReference Include="Microsoft.Extensions.Logging.Abstractions" VersionOverride="2.2.0" />
<PackageReference Include="Microsoft.Extensions.DependencyInjection" VersionOverride="2.2.0" />
<PackageReference Include="Microsoft.Extensions.Logging.Configuration" VersionOverride="2.2.0" PrivateAssets="All" />
</ItemGroup>

<ItemGroup Condition=" '$(TargetFramework)' == 'net6.0' ">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>netcoreapp3.1</TargetFramework>
<TargetFramework>net8.0</TargetFramework>
</PropertyGroup>

<ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
<Project Sdk="Microsoft.NET.Sdk.Web">

<PropertyGroup>
<TargetFramework>netcoreapp3.1</TargetFramework>
<TargetFramework>net8.0</TargetFramework>
</PropertyGroup>

<ItemGroup>
<Protobuf Include="Protos\greet.proto" GrpcServices="Server" />
</ItemGroup>

<ItemGroup>
<PackageReference Include="Grpc.AspNetCore"" />
<PackageReference Include="Grpc.AspNetCore" />
</ItemGroup>

<ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,19 +32,21 @@ public static IEnumerable<object[]> TestParameters
{
get
{
//TODO test version 8.x

// use the version defined in NpgsqlSample
var npgSqlVersion = "5.0.7";
var npgSqlVersion = "5.0.18";

// TODO: Add x64/x86 options. macOS and Linux do not support x86
yield return new object[] { "net8.0", npgSqlVersion };

if (TestEnvironment.IsWindows)
yield return new object[] { "net462", npgSqlVersion };

npgSqlVersion = "6.0.2";
npgSqlVersion = "6.0.12";
yield return new object[] { "net8.0", npgSqlVersion };

npgSqlVersion = "7.0.2";
npgSqlVersion = "7.0.8";
yield return new object[] { "net8.0", npgSqlVersion };
}
}
Expand Down
4 changes: 2 additions & 2 deletions test/profiler/applications/NpgsqlSample/NpgsqlSample.csproj
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<NpgsqlVersion Condition="'$(NpgsqlVersion)'==''">5.0.7</NpgsqlVersion>
<NpgsqlVersion Condition="'$(NpgsqlVersion)'==''">5.0.18</NpgsqlVersion>
<OutputType>Exe</OutputType>
<TargetFrameworks>net462;net6.0;net8.0</TargetFrameworks>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Npgsql" VersionOverride="$(NpgsqlVersion)" />
<PackageReference Include="Npgsql" VersionOverride="5.0.18" />
</ItemGroup>

<ItemGroup>
Expand Down

0 comments on commit 7399604

Please sign in to comment.