From 8e69f6b12d1015b81f5aba44384047997ee45ec5 Mon Sep 17 00:00:00 2001 From: Xueqin Cui <72771658+cuixq@users.noreply.github.com> Date: Tue, 10 Sep 2024 16:57:31 +1000 Subject: [PATCH] chore: update Go to 1.23.1 (#2583) A few vulnerabilities reported on the current Go version, so this PR updates Go to 1.23.1. --- .github/workflows/lint.yaml | 2 +- docker/ci/install_go.sh | 2 +- docker/indexer/go.mod | 2 +- docs/go.mod | 2 +- tools/datastore-remover/go.mod | 2 +- tools/indexer-api-caller/go.mod | 2 +- vulnfeeds/go.mod | 2 +- 7 files changed, 7 insertions(+), 7 deletions(-) diff --git a/.github/workflows/lint.yaml b/.github/workflows/lint.yaml index 11ff19d5a5e..3eec698ba24 100644 --- a/.github/workflows/lint.yaml +++ b/.github/workflows/lint.yaml @@ -42,7 +42,7 @@ jobs: - name: Set up Go uses: actions/setup-go@v5 with: - go-version: '>=1.22.5' + go-version: '>=1.23.1' - name: Set up terraform uses: hashicorp/setup-terraform@v2 - name: Run pylint and yapf, go vet diff --git a/docker/ci/install_go.sh b/docker/ci/install_go.sh index bc834a5631c..a34b333dc42 100755 --- a/docker/ci/install_go.sh +++ b/docker/ci/install_go.sh @@ -19,4 +19,4 @@ set -eux # Download and install Go # https://pkg.go.dev/golang.org/x/tools/cmd/getgo#section-readme -curl -LO https://get.golang.org/$(uname)/go_installer && chmod +x go_installer && SHELL="bash" ./go_installer -version 1.22.5 && rm go_installer +curl -LO https://get.golang.org/$(uname)/go_installer && chmod +x go_installer && SHELL="bash" ./go_installer -version 1.23.1 && rm go_installer diff --git a/docker/indexer/go.mod b/docker/indexer/go.mod index d4292b5bb29..0dce82ae37e 100644 --- a/docker/indexer/go.mod +++ b/docker/indexer/go.mod @@ -1,6 +1,6 @@ module github.com/google/osv.dev/docker/indexer -go 1.22.5 +go 1.23.1 require ( cloud.google.com/go/datastore v1.19.0 diff --git a/docs/go.mod b/docs/go.mod index fb290ef6c9e..2bff8a5c45a 100644 --- a/docs/go.mod +++ b/docs/go.mod @@ -1,6 +1,6 @@ module osv.dev/tools -go 1.22.5 +go 1.23.1 require ( github.com/grpc-ecosystem/grpc-gateway/v2 v2.22.0 diff --git a/tools/datastore-remover/go.mod b/tools/datastore-remover/go.mod index b6f82719102..4b382e2111c 100644 --- a/tools/datastore-remover/go.mod +++ b/tools/datastore-remover/go.mod @@ -1,6 +1,6 @@ module github.com/google/datastore-remover -go 1.22.5 +go 1.23.1 require ( cloud.google.com/go/datastore v1.19.0 diff --git a/tools/indexer-api-caller/go.mod b/tools/indexer-api-caller/go.mod index f9a85769288..18f97c192d3 100644 --- a/tools/indexer-api-caller/go.mod +++ b/tools/indexer-api-caller/go.mod @@ -1,3 +1,3 @@ module github.com/google/indexer-api-caller -go 1.22.5 +go 1.23.1 diff --git a/vulnfeeds/go.mod b/vulnfeeds/go.mod index f0b399471bf..232252aa049 100644 --- a/vulnfeeds/go.mod +++ b/vulnfeeds/go.mod @@ -1,6 +1,6 @@ module github.com/google/osv/vulnfeeds -go 1.22.5 +go 1.23.1 require ( cloud.google.com/go/logging v1.11.0