diff --git a/agent/Dockerfile b/agent/Dockerfile index 71b826a..9d0c66c 100644 --- a/agent/Dockerfile +++ b/agent/Dockerfile @@ -1,4 +1,4 @@ -FROM golang:1.25-bookworm AS build +FROM golang:1.26.11-bookworm AS build WORKDIR /src/agent COPY agent/ . RUN CGO_ENABLED=0 DESTDIR=/out bash build.sh diff --git a/agent/README.md b/agent/README.md index 3e9a2ea..3044428 100644 --- a/agent/README.md +++ b/agent/README.md @@ -118,7 +118,7 @@ proxying is disabled; no upstream vendor credentials or forwarding are used. ## Build -Install Go 1.25 or newer and ensure `go` is on your PATH. +Install Go 1.26.11 or newer and ensure `go` is on your PATH. ```sh cd agent diff --git a/agent/release.sh b/agent/release.sh index 0949ca0..6f193b4 100644 --- a/agent/release.sh +++ b/agent/release.sh @@ -14,6 +14,8 @@ fi "$BUILDER" --config manifest.yaml --skip-compilation cp main.go config.go logoperator.go config_test.go logoperator_test.go _build/ cd _build +# Build with a patched Go toolchain (standard-library security fixes); see docs/AUDIT.md. +go mod edit -toolchain=go1.26.11 go mod tidy go test -p "${GO_BUILD_PARALLELISM:-2}" -trimpath -tags grpcnotrace ./... TARGETS="${TARGETS:-linux/amd64 linux/arm64 darwin/arm64 darwin/amd64}" bash ../notices.sh "$OUT/datacat-agent-THIRD_PARTY_NOTICES.txt"