Skip to content

Commit 1361702

Browse files
committed
ci: pin Go toolchain from go.mod and add go mod verify
1 parent f543d82 commit 1361702

3 files changed

Lines changed: 4 additions & 3 deletions

File tree

.github/workflows/lint.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
1212
- uses: actions/setup-go@b7ad1dad31e06c5925ef5d2fc7ad053ef454303e # v7.0.0
1313
with:
14-
go-version: "1.25"
14+
go-version-file: go.mod
1515
- uses: golangci/golangci-lint-action@ba0d7d2ec06a0ea1cb5fa41b2e4a3ab91d21278a # v9.3.0
1616
with:
1717
version: v2.11.3

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
- name: Set up Go
1818
uses: actions/setup-go@b7ad1dad31e06c5925ef5d2fc7ad053ef454303e # v7.0.0
1919
with:
20-
go-version: "1.25"
20+
go-version-file: go.mod
2121
id: go
2222

2323
# Needed to build multi-platform Docker images

.github/workflows/tests.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@ jobs:
1111
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
1212
- uses: actions/setup-go@b7ad1dad31e06c5925ef5d2fc7ad053ef454303e # v7.0.0
1313
with:
14-
go-version: "1.25"
14+
go-version-file: go.mod
15+
- run: go mod verify
1516
- run: go test -race -coverprofile=coverage.txt ./...
1617
- uses: golang/govulncheck-action@032d45514ae346b1db93c04b0c90b841c370344f # v1.1.0
1718
with:

0 commit comments

Comments
 (0)