From 88a5ddee53f3ef47a195be488f1df81bf0c3ea00 Mon Sep 17 00:00:00 2001 From: Claude Date: Sat, 14 Nov 2026 10:02:47 +0000 Subject: [PATCH] chore: pin container base images by digest Both FROM lines in build/container/Containerfile resolve to the Chainguard wolfi-base OCI index digest, written as digest only: SonarCloud rule docker:S8431 rejects a reference carrying both a tag and a digest, and the estate gate accepts any @sha256:<64 hex> reference. Co-Authored-By: Claude --- build/container/Containerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/build/container/Containerfile b/build/container/Containerfile index 144f4b04..d786a158 100644 --- a/build/container/Containerfile +++ b/build/container/Containerfile @@ -61,7 +61,7 @@ # chain integrity, e.g.: # FROM cgr.dev/chainguard/wolfi-base:latest@sha256: AS builder # (cerro-torre's .ctp signing in build/container/stapeln/ records the resolved digest.) -FROM cgr.dev/chainguard/wolfi-base:latest AS builder +FROM cgr.dev/chainguard/wolfi-base@sha256:1f6b749929164c3d9e7cad0289254f39b2ba51e1dddaeb0fa57532ea03f2db31 AS builder # TODO: Install your language toolchain RUN apk add --no-cache build-base @@ -79,7 +79,7 @@ COPY . . # Minimal production image. Only the compiled binary/release and runtime # dependencies are included. No compilers, no source code, no build tools. # -FROM cgr.dev/chainguard/wolfi-base:latest +FROM cgr.dev/chainguard/wolfi-base@sha256:1f6b749929164c3d9e7cad0289254f39b2ba51e1dddaeb0fa57532ea03f2db31 # OCI image labels (compatible with cerro-torre .ctp bundle metadata) LABEL org.opencontainers.image.title="bactrian" \