Skip to content

Commit

Permalink
[Security] Security Advisory CVE-2023-29331 // dotnet v7.0.304 (#3358)
Browse files Browse the repository at this point in the history
* Fix security alerts.

* Upgrade dotnet to v7.0.304.

* Removing empty spaces. Adding reference to System.Security.Cryptography.Pkcs.

* Chaging dependency in FHIR.Cosmos
  • Loading branch information
fhibf authored Jun 16, 2023
1 parent d6ef034 commit 9fbfeb6
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 4 deletions.
1 change: 1 addition & 0 deletions Directory.Packages.props
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,7 @@
<PackageVersion Include="System.Net.Http" Version="4.3.4" />
<PackageVersion Include="System.Private.ServiceModel" Version="4.10.2" />
<PackageVersion Include="System.Security.Cryptography.Xml" Version="7.0.1" />
<PackageVersion Include="System.Security.Cryptography.Pkcs" Version="7.0.2" />
<PackageVersion Include="System.Text.Encodings.Web" Version="7.0.0" />
<PackageVersion Include="xunit.extensibility.core" Version="2.4.2" />
<PackageVersion Include="xunit.runner.visualstudio" Version="2.4.5" />
Expand Down
4 changes: 2 additions & 2 deletions build/docker/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM mcr.microsoft.com/dotnet/sdk:7.0.203-alpine3.17 AS build
FROM mcr.microsoft.com/dotnet/sdk:7.0.304-alpine3.17 AS build

ARG FHIR_VERSION
ARG ASSEMBLY_VER
Expand Down Expand Up @@ -68,7 +68,7 @@ COPY . .

RUN dotnet publish /repo/src/Microsoft.Health.Fhir.${FHIR_VERSION}.Web/Microsoft.Health.Fhir.${FHIR_VERSION}.Web.csproj -c Release -o "/build" --no-restore -p:AssemblyVersion="${ASSEMBLY_VER}" -p:FileVersion="${ASSEMBLY_VER}" -p:Version="${ASSEMBLY_VER}" -f net7.0

FROM mcr.microsoft.com/dotnet/aspnet:7.0.5-alpine3.17 AS runtime
FROM mcr.microsoft.com/dotnet/aspnet:7.0.7-alpine3.17 AS runtime

ARG FHIR_VERSION

Expand Down
2 changes: 1 addition & 1 deletion build/dotnet6-compat/global.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"sdk": {
"version": "6.0.408"
"version": "6.0.410"
}
}
2 changes: 1 addition & 1 deletion global.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"sdk": {
"version": "7.0.203"
"version": "7.0.304"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
<PackageReference Include="System.Security.Cryptography.Xml">
<PrivateAssets>All</PrivateAssets>
</PackageReference>
<PackageReference Include="System.Security.Cryptography.Pkcs" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\Microsoft.Health.Fhir.Api\Microsoft.Health.Fhir.Api.csproj" />
Expand Down

0 comments on commit 9fbfeb6

Please sign in to comment.