Skip to content

Commit 1d13ab5

Browse files
claude[bot]github-actions[bot]claude
authored
build-godynamic: pin patched grpc in docker-compose (GHSA-hrxh-6v49-42gf) (#105)
The published build-godynamic:latest dropped below Docker Scout grade A on a new fixable HIGH: google.golang.org/grpc 1.81.1 (GHSA-hrxh-6v49-42gf, uncaught exception, fixed in 1.82.1), bundled transitively by the from-source docker-compose v5.2.0 build. Pin google.golang.org/grpc@v1.82.1 in the compose `go get` — the same from-source transitive-pin pattern already used for gotestsum/golangci-lint/ git-lfs. Verified locally: the rebuilt image bakes grpc v1.82.1 into the docker-compose plugin and the VEX-aware scout-cve-gate passes (only the VEX-waived CVE-2026-34040 remains). Non-breaking: no change to USER, entrypoint, base, or the compose version; just an upgraded transitive dep. Tracks scout-drift issue #104 (sla:high). Co-authored-by: claude[bot] <41898282+claude[bot]@users.noreply.github.com> Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
1 parent 348e699 commit 1d13ab5

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

images/Dockerfile.build-godynamic

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,9 +89,13 @@ RUN apk add --no-cache gcc git musl-dev && \
8989
go build -o /go/bin/git-lfs "github.com/git-lfs/git-lfs/v3" && \
9090
cd / && rm -rf /tmp/gitlfs
9191
ARG DOCKER_COMPOSE_VERSION
92+
# Built from source so we can pin a patched google.golang.org/grpc
93+
# (GHSA-hrxh-6v49-42gf — uncaught exception, fixed in 1.82.1); compose v5.2.0
94+
# otherwise bundles the vulnerable grpc 1.81.1. Drop the pin once compose
95+
# requires grpc >= 1.82.1 transitively.
9296
RUN mkdir /tmp/compose && cd /tmp/compose && \
9397
go mod init _compose && \
94-
go get "github.com/docker/compose/v5/cmd@v${DOCKER_COMPOSE_VERSION}" && \
98+
go get "github.com/docker/compose/v5/cmd@v${DOCKER_COMPOSE_VERSION}" google.golang.org/grpc@v1.82.1 && \
9599
go build -o /go/bin/docker-compose "github.com/docker/compose/v5/cmd" && \
96100
cd / && rm -rf /tmp/compose
97101

0 commit comments

Comments
 (0)