From 22189b653e3676a3f37dff86e4bae38d77fc5669 Mon Sep 17 00:00:00 2001 From: hc-github-team-consul-core Date: Wed, 19 Jul 2023 16:27:16 -0500 Subject: [PATCH] Backport of [NET-4865] security: Update Go version to 1.20.6 into release/1.15.x (#18194) backport of commit 93f3209a69b0db8446c08add6521b2409f86c476 Co-authored-by: Michael Zalimeni --- .changelog/18190.txt | 5 +++++ .github/workflows/build.yml | 22 +++++++++++----------- build-support/docker/Build-Go.dockerfile | 2 +- 3 files changed, 17 insertions(+), 12 deletions(-) create mode 100644 .changelog/18190.txt diff --git a/.changelog/18190.txt b/.changelog/18190.txt new file mode 100644 index 0000000000..3468442e21 --- /dev/null +++ b/.changelog/18190.txt @@ -0,0 +1,5 @@ +```release-note:security +Upgrade to use Go 1.20.6. +This resolves [CVE-2023-29406](https://github.com/advisories/GHSA-f8f7-69v5-w4vx)(`net/http`) for uses of the standard library. +A separate change updates dependencies on `golang.org/x/net` to use `0.12.0`. +``` diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index c788a1536c..51d1ecb965 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -84,15 +84,15 @@ jobs: strategy: matrix: include: - - {go: "1.20.4", goos: "linux", goarch: "386"} - - {go: "1.20.4", goos: "linux", goarch: "amd64"} - - {go: "1.20.4", goos: "linux", goarch: "arm"} - - {go: "1.20.4", goos: "linux", goarch: "arm64"} - - {go: "1.20.4", goos: "freebsd", goarch: "386"} - - {go: "1.20.4", goos: "freebsd", goarch: "amd64"} - - {go: "1.20.4", goos: "windows", goarch: "386"} - - {go: "1.20.4", goos: "windows", goarch: "amd64"} - - {go: "1.20.4", goos: "solaris", goarch: "amd64"} + - {go: "1.20.6", goos: "linux", goarch: "386"} + - {go: "1.20.6", goos: "linux", goarch: "amd64"} + - {go: "1.20.6", goos: "linux", goarch: "arm"} + - {go: "1.20.6", goos: "linux", goarch: "arm64"} + - {go: "1.20.6", goos: "freebsd", goarch: "386"} + - {go: "1.20.6", goos: "freebsd", goarch: "amd64"} + - {go: "1.20.6", goos: "windows", goarch: "386"} + - {go: "1.20.6", goos: "windows", goarch: "amd64"} + - {go: "1.20.6", goos: "solaris", goarch: "amd64"} fail-fast: true name: Go ${{ matrix.go }} ${{ matrix.goos }} ${{ matrix.goarch }} build @@ -181,7 +181,7 @@ jobs: strategy: matrix: include: - - {go: "1.20.4", goos: "linux", goarch: "s390x"} + - {go: "1.20.6", goos: "linux", goarch: "s390x"} fail-fast: true name: Go ${{ matrix.go }} ${{ matrix.goos }} ${{ matrix.goarch }} build @@ -232,7 +232,7 @@ jobs: matrix: goos: [ darwin ] goarch: [ "amd64", "arm64" ] - go: [ "1.20.4" ] + go: [ "1.20.6" ] fail-fast: true name: Go ${{ matrix.go }} ${{ matrix.goos }} ${{ matrix.goarch }} build diff --git a/build-support/docker/Build-Go.dockerfile b/build-support/docker/Build-Go.dockerfile index 8ab8e8cb9a..5f0732cf25 100644 --- a/build-support/docker/Build-Go.dockerfile +++ b/build-support/docker/Build-Go.dockerfile @@ -1,7 +1,7 @@ # Copyright (c) HashiCorp, Inc. # SPDX-License-Identifier: MPL-2.0 -ARG GOLANG_VERSION=1.20.4 +ARG GOLANG_VERSION=1.20.6 FROM golang:${GOLANG_VERSION} WORKDIR /consul