Skip to content

Commit

Permalink
Go 1.23.5 / GH Action uses go.mod
Browse files Browse the repository at this point in the history
This patch updates go.mod to specify Go 1.23.5 and
updates the GitHub actions to use the Go version from
go.mod.

This patch also addresses https://pkg.go.dev/vuln/GO-2025-3420
and https://pkg.go.dev/vuln/GO-2025-3373, both fixed by updating
from Go 1.23.4 to 1.23.5.
  • Loading branch information
akutz committed Jan 28, 2025
1 parent 123d5bd commit ea77d72
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 11 deletions.
17 changes: 7 additions & 10 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
name: ci

env:
GO_VERSION: 1.23

on:
pull_request:
branches:
Expand Down Expand Up @@ -58,7 +55,7 @@ jobs:
- name: Install Go
uses: actions/setup-go@v5
with:
go-version: ${{ env.GO_VERSION }}
go-version-file: go.mod
cache: true
cache-dependency-path: '**/go.sum'
- name: Run go mod tidy
Expand All @@ -84,7 +81,7 @@ jobs:
- name: Install Go
uses: actions/setup-go@v5
with:
go-version: ${{ env.GO_VERSION }}
go-version-file: go.mod
cache: true
cache-dependency-path: '**/go.sum'
- name: Verify codegen
Expand All @@ -100,7 +97,7 @@ jobs:
- name: Install Go
uses: actions/setup-go@v5
with:
go-version: ${{ env.GO_VERSION }}
go-version-file: go.mod
cache: true
cache-dependency-path: '**/go.sum'
- name: Create kind cluster
Expand All @@ -124,7 +121,7 @@ jobs:
- name: Install Go
uses: actions/setup-go@v5
with:
go-version: ${{ env.GO_VERSION }}
go-version-file: go.mod
cache: true
cache-dependency-path: '**/go.sum'
- name: Setup the cache for golangci-lint
Expand All @@ -147,7 +144,7 @@ jobs:
- name: Install Go
uses: actions/setup-go@v5
with:
go-version: ${{ env.GO_VERSION }}
go-version-file: go.mod
cache: true
cache-dependency-path: '**/go.sum'
- name: Setup the cache for govulncheck
Expand All @@ -169,7 +166,7 @@ jobs:
- name: Install Go
uses: actions/setup-go@v5
with:
go-version: ${{ env.GO_VERSION }}
go-version-file: go.mod
cache: true
cache-dependency-path: '**/go.sum'
- name: Build Image
Expand All @@ -185,7 +182,7 @@ jobs:
- name: Install Go
uses: actions/setup-go@v5
with:
go-version: ${{ env.GO_VERSION }}
go-version-file: go.mod
cache: true
cache-dependency-path: '**/go.sum'
- name: Test
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/vmware-tanzu/vm-operator

go 1.23
go 1.23.5

replace (
github.com/vmware-tanzu/vm-operator/api => ./api
Expand Down

0 comments on commit ea77d72

Please sign in to comment.