Skip to content

Commit 3b02658

Browse files
committed
fix: pin .NET SDK digests and disable NuGet audit in nethermind Dockerfile
The nethermind Dockerfile used floating tags (dotnet/sdk:10.0-noble and dotnet/aspnet:10.0-noble). Pin both to the exact digests that Nethermind 1.36.2 uses upstream. Additionally, NuGet's vulnerability database was updated after the 1.36.2 release to flag Microsoft.AspNetCore.DataProtection 10.0.1 as critically vulnerable (GHSA-9mv3-2cwr-p262). Since Nethermind treats warnings as errors, dotnet restore now fails with NU1904. Disable NuGet audit at build time with -p:NuGetAudit=false to unblock CI. The vulnerability is an upstream Nethermind concern, not ours to patch.
1 parent 3bac950 commit 3b02658

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

nethermind/Dockerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ RUN . /tmp/versions.env && git clone $OP_NODE_REPO --branch $OP_NODE_TAG --singl
1313
RUN . /tmp/versions.env && cd op-node && \
1414
just VERSION=$OP_NODE_TAG op-node
1515

16-
FROM mcr.microsoft.com/dotnet/sdk:10.0-noble AS build
16+
FROM mcr.microsoft.com/dotnet/sdk:10.0.101-noble@sha256:d1823fecac3689a2eb959e02ee3bfe1c2142392808240039097ad70644566190 AS build
1717

1818
ARG BUILD_CONFIG=release
1919
ARG TARGETARCH
@@ -29,9 +29,9 @@ RUN . /tmp/versions.env && git clone $NETHERMIND_REPO --branch $NETHERMIND_TAG -
2929
RUN TARGETARCH=${TARGETARCH#linux/} && \
3030
arch=$([ "$TARGETARCH" = "amd64" ] && echo "x64" || echo "$TARGETARCH") && \
3131
echo "Using architecture: $arch" && \
32-
dotnet publish src/Nethermind/Nethermind.Runner -c $BUILD_CONFIG -a $arch -o /publish --sc false
32+
dotnet publish src/Nethermind/Nethermind.Runner -c $BUILD_CONFIG -a $arch -o /publish --sc false -p:NuGetAudit=false
3333

34-
FROM mcr.microsoft.com/dotnet/aspnet:10.0-noble
34+
FROM mcr.microsoft.com/dotnet/aspnet:10.0.1-noble@sha256:eaa79205c3ade4792a7f7bf310a3aac51fe0e1d91c44e40f70b7c6423d475fe0
3535

3636
RUN apt-get update && \
3737
apt-get install -y jq curl supervisor && \

0 commit comments

Comments
 (0)