From ccb05f16c9bf2d1589406544c173e74b546773f0 Mon Sep 17 00:00:00 2001 From: SayHelloGsx <36391162+SayHelloGsx@users.noreply.github.com> Date: Mon, 30 Nov 2026 02:54:27 +0000 Subject: [PATCH] fix: refresh patched .NET container image pins Update SDK to 10.0.404 and runtime targets to 10.0.15 with refreshed Ubuntu Noble digests to resolve the failing container vulnerability gate. Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> --- Dockerfile | 6 +++--- README.md | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/Dockerfile b/Dockerfile index 50dab97..798d4e0 100644 --- a/Dockerfile +++ b/Dockerfile @@ -2,7 +2,7 @@ FROM node:24.19.0-bookworm-slim@sha256:a9f5f7c91a432850b2a8a7797adf5eadb6c733ceed61167806cee7ea7fbc29df AS node -FROM mcr.microsoft.com/dotnet/sdk:10.0.403-noble@sha256:de4fe90a98845d75910b9769662465c84de1a934665c431279d1382b2bddc02b AS build +FROM mcr.microsoft.com/dotnet/sdk:10.0.404-noble@sha256:8c6edfb26c85153f236d26efebd9ad349aec403583f343f201ee67838b23658d AS build ARG CONFIGURATION=Release ARG NPM_REGISTRY=https://packagefeedproxy.microsoft.io/npm/ @@ -43,7 +43,7 @@ RUN sed -i "s|https://registry\.npmjs\.org/|${NPM_REGISTRY%/}/|g" \ --output /out/migrator \ /p:UseAppHost=false -FROM mcr.microsoft.com/dotnet/aspnet:10.0.13-noble@sha256:8af87eba5e7cdafb1514d7388be287365da97c132509e84dfe252ffd552398ca AS web +FROM mcr.microsoft.com/dotnet/aspnet:10.0.15-noble@sha256:aac50ceef10391e78a899e3d2ccd00bbafa2dcb56ccf4586cbccf00edb84fc21 AS web WORKDIR /app RUN apt-get update \ @@ -57,7 +57,7 @@ ENV ASPNETCORE_URLS=http://+:8080 EXPOSE 8080 ENTRYPOINT ["dotnet", "SayHello.ShortLink.WebHost.Web.dll"] -FROM mcr.microsoft.com/dotnet/aspnet:10.0.13-noble@sha256:8af87eba5e7cdafb1514d7388be287365da97c132509e84dfe252ffd552398ca AS migrator +FROM mcr.microsoft.com/dotnet/aspnet:10.0.15-noble@sha256:aac50ceef10391e78a899e3d2ccd00bbafa2dcb56ccf4586cbccf00edb84fc21 AS migrator WORKDIR /app COPY --from=build --chown=app:app /out/migrator . diff --git a/README.md b/README.md index e0aa8c9..29228e9 100644 --- a/README.md +++ b/README.md @@ -368,9 +368,9 @@ prefixes in the image's copy of the lockfile. GitHub container publishing explic `NPM_REGISTRY=https://registry.npmjs.org/`; local Docker builds can also select a registry with `--build-arg NPM_REGISTRY=` without modifying the checked-in lockfile. -The Dockerfile pins the .NET SDK and both runtime targets to patched Ubuntu Noble -image digests. Refresh the tags and digests together when servicing .NET or OS -vulnerabilities; a floating tag does not update a digest-pinned image. Container +The Dockerfile pins the .NET SDK 10.0.404 and both .NET 10.0.15 runtime targets to +patched Ubuntu Noble image digests. Refresh the tags and digests together when +servicing .NET or OS vulnerabilities; a floating tag does not update a digest-pinned image. Container publishing rejects fixable HIGH and CRITICAL Trivy findings and uploads its SARIF report. ```powershell