From 07474cb210f166ff17d0fd86ee7d769c90a3e4c7 Mon Sep 17 00:00:00 2001 From: Qi Ni Date: Wed, 11 Sep 2024 11:24:22 +1000 Subject: [PATCH] fix: Bump golang version to 1.23.1 to fix cves --- Dockerfile | 2 +- cloud-node-manager.Dockerfile | 2 +- e2e.Dockerfile | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index f368715e97..521fe8c171 100644 --- a/Dockerfile +++ b/Dockerfile @@ -14,7 +14,7 @@ # syntax=docker/dockerfile:1 -FROM --platform=linux/amd64 golang:1.23.0-bookworm AS builder +FROM --platform=linux/amd64 golang:1.23-bullseye@sha256:45b43371f21ec51276118e6806a22cbb0bca087ddd54c491fdc7149be01035d5 AS builder ARG ENABLE_GIT_COMMAND=true ARG ARCH=amd64 diff --git a/cloud-node-manager.Dockerfile b/cloud-node-manager.Dockerfile index 54fd90e90a..9c5f5a293f 100644 --- a/cloud-node-manager.Dockerfile +++ b/cloud-node-manager.Dockerfile @@ -14,7 +14,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -FROM --platform=linux/amd64 golang:1.23.0-bookworm AS builder +FROM --platform=linux/amd64 golang:1.23-bullseye@sha256:45b43371f21ec51276118e6806a22cbb0bca087ddd54c491fdc7149be01035d5 AS builder ARG ENABLE_GIT_COMMAND=true ARG ARCH=amd64 diff --git a/e2e.Dockerfile b/e2e.Dockerfile index f612038fa8..661ad03220 100644 --- a/e2e.Dockerfile +++ b/e2e.Dockerfile @@ -14,7 +14,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -FROM golang:1.23.0-bookworm +FROM --platform=linux/amd64 golang:1.23-bullseye@sha256:45b43371f21ec51276118e6806a22cbb0bca087ddd54c491fdc7149be01035d5 AS builder WORKDIR /go/src/sigs.k8s.io/cloud-provider-azure