From e7c5d30e747c965e99991237abcb30e504f39b66 Mon Sep 17 00:00:00 2001 From: Donglai Fu Date: Tue, 13 Aug 2024 14:05:42 +0800 Subject: [PATCH] Upgrade go version to fix CVE-2024-24789, CVE-2024-24790 (#231) * cve * fix cve * red hat --- Dockerfile | 2 +- go.mod | 2 +- redhat.Dockerfile | 2 +- tests/go.mod | 4 +--- 4 files changed, 4 insertions(+), 6 deletions(-) diff --git a/Dockerfile b/Dockerfile index 508bdb7e..ab954349 100644 --- a/Dockerfile +++ b/Dockerfile @@ -13,7 +13,7 @@ # limitations under the License. # Build the manager binary -FROM golang:1.21.10-alpine3.20 as builder +FROM golang:1.22.6-alpine3.20 as builder ARG ACCESS_TOKEN="none" diff --git a/go.mod b/go.mod index 95515e2d..0945794b 100644 --- a/go.mod +++ b/go.mod @@ -1,6 +1,6 @@ module github.com/streamnative/pulsar-resources-operator -go 1.21 +go 1.22.6 require ( github.com/apache/pulsar-client-go v0.12.1 diff --git a/redhat.Dockerfile b/redhat.Dockerfile index 138cc683..e97b6852 100644 --- a/redhat.Dockerfile +++ b/redhat.Dockerfile @@ -27,7 +27,7 @@ # limitations under the License. # Build the manager binary -FROM golang:1.21.10-alpine3.20 as builder +FROM golang:1.22.6-alpine3.20 as builder ARG ACCESS_TOKEN="none" diff --git a/tests/go.mod b/tests/go.mod index 186d59ee..a9070e6f 100644 --- a/tests/go.mod +++ b/tests/go.mod @@ -1,8 +1,6 @@ module github.com/streamnative/pulsar-resources-operator/tests -go 1.21 - -toolchain go1.22.3 +go 1.22.6 require ( // pulsar-client-go latest version is v0.9.0,