Skip to content

Commit c2cb0bd

Browse files
authored
chore: update Go versions to fix vulnerabilities (#4987)
1 parent 13836f9 commit c2cb0bd

30 files changed

Lines changed: 69 additions & 57 deletions

File tree

.github/workflows/generate-protos.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ jobs:
4848
- name: Set up Go
4949
uses: actions/setup-go@4b73464bb391d4059bd26b0524d20df3927bd417 # v6.3.0
5050
with:
51-
go-version: '1.26.0'
51+
go-version: '1.26.1'
5252

5353
- name: Install protoc
5454
run: |

.github/workflows/lint.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ jobs:
5252
- name: Set up Go
5353
uses: actions/setup-go@4b73464bb391d4059bd26b0524d20df3927bd417 # v6.3.0
5454
with:
55-
go-version: '>=1.25.7'
55+
go-version: '>=1.26.1'
5656
- name: Set up terraform
5757
uses: hashicorp/setup-terraform@5e8dbf3c6d9deaf4193ca7a8fb23f2ac83bb6c85 # v4.0.0
5858
- name: Run pylint and yapf, go vet

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ update-api-snapshots:
5252
cd gcp/api && UPDATE_SNAPS=true ./run_tests_e2e.sh $(HOME)/.config/gcloud/application_default_credentials.json
5353

5454
lint:
55-
GOTOOLCHAIN=go1.26.0 $(run-cmd) tools/lint_and_format.sh
55+
GOTOOLCHAIN=go1.26.1 $(run-cmd) tools/lint_and_format.sh
5656

5757
build-osv-protos:
5858
cd osv && $(run-cmd) python -m grpc_tools.protoc --python_out=. --mypy_out=. --proto_path=. --proto_path=osv-schema/proto vulnerability.proto importfinding.proto

bindings/go/go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module osv.dev/bindings/go
22

3-
go 1.26.0
3+
go 1.26.1
44

55
require (
66
github.com/google/go-cmp v0.7.0

docker/ci/install_go.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,4 @@ set -eux
1919

2020
# Download and install Go
2121
# https://go.dev/doc/install
22-
curl https://go.dev/dl/go1.25.7.linux-amd64.tar.gz -LO && rm -rf /usr/local/go && tar -C /usr/local -xzf go1.25.7.linux-amd64.tar.gz
22+
curl https://go.dev/dl/go1.26.1.linux-amd64.tar.gz -LO && rm -rf /usr/local/go && tar -C /usr/local -xzf go1.26.1.linux-amd64.tar.gz

docker/terraform/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Taken and modified from https://github.com/GoogleCloudPlatform/cloud-builders-community/tree/master/terraform
22

3-
FROM golang:1.26.0-alpine@sha256:d4c4845f5d60c6a974c6000ce58ae079328d03ab7f721a0734277e69905473e5 AS GO_BUILD
3+
FROM golang:1.26.1-alpine@sha256:d337ecb3075f0ec76d81652b3fa52af47c3eba6c8ba9f93b835752df7ce62946 AS GO_BUILD
44

55
ARG TERRAFORM_VERSION
66
WORKDIR /build/

docs/go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module osv.dev/tools
22

3-
go 1.26.0
3+
go 1.26.1
44

55
require (
66
github.com/grpc-ecosystem/grpc-gateway/v2 v2.28.0

gcp/indexer/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414

15-
FROM golang:1.26.0-alpine@sha256:d4c4845f5d60c6a974c6000ce58ae079328d03ab7f721a0734277e69905473e5 AS GO_BUILD
15+
FROM golang:1.26.1-alpine@sha256:d337ecb3075f0ec76d81652b3fa52af47c3eba6c8ba9f93b835752df7ce62946 AS GO_BUILD
1616
WORKDIR /build
1717

1818
# Cache dependencies in these steps

gcp/indexer/go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module github.com/google/osv.dev/gcp/indexer
22

3-
go 1.26.0
3+
go 1.26.1
44

55
require (
66
cloud.google.com/go/datastore v1.22.0

gcp/workers/linter/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515

1616
# Stage 1: Build the Go linter binary
17-
FROM golang:1.26.0-alpine@sha256:d4c4845f5d60c6a974c6000ce58ae079328d03ab7f721a0734277e69905473e5 AS go_builder
17+
FROM golang:1.26.1-alpine@sha256:d337ecb3075f0ec76d81652b3fa52af47c3eba6c8ba9f93b835752df7ce62946 AS go_builder
1818

1919
RUN apk add --no-cache git
2020
WORKDIR /src

0 commit comments

Comments
 (0)