Skip to content

Commit 2603279

Browse files
committed
Revert to go-version-file go.mod for controllable Go version pinning
1 parent 916f711 commit 2603279

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

.github/workflows/ci.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,11 @@ jobs:
2020
- name: Checkout
2121
uses: actions/checkout@v6
2222

23-
# Always use the latest stable Go release for the newest compiler and stdlib fixes.
23+
# Go version is read from go.mod so it stays in sync with the project.
2424
- name: Set up Go
2525
uses: actions/setup-go@v6
2626
with:
27-
go-version: 'stable'
27+
go-version-file: go.mod
2828

2929
# Verify dependency checksums match go.sum (detects corrupted or tampered modules).
3030
- name: Verify dependencies
@@ -48,7 +48,7 @@ jobs:
4848
- name: Set up Go
4949
uses: actions/setup-go@v6
5050
with:
51-
go-version: 'stable'
51+
go-version-file: go.mod
5252

5353
- name: Run go vet
5454
run: go vet ./...
@@ -72,7 +72,7 @@ jobs:
7272
- name: Set up Go
7373
uses: actions/setup-go@v6
7474
with:
75-
go-version: 'stable'
75+
go-version-file: go.mod
7676

7777
- name: Build
7878
run: go build -o /dev/null .

.github/workflows/govulncheck.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,13 +24,13 @@ jobs:
2424

2525
- uses: actions/setup-go@v6
2626
with:
27-
go-version: 'stable'
27+
go-version-file: go.mod
2828

2929
# golang/govulncheck-action runs govulncheck against all packages (./...).
3030
# With the default text output format, the job fails if vulnerabilities are found.
3131
- uses: golang/govulncheck-action@v1
3232
with:
33-
go-version-input: 'stable'
33+
go-version-file: go.mod
3434

3535
# Open a GitHub issue when the scheduled scan finds vulnerabilities.
3636
# Only runs on cron failures — PR and push failures are visible in the checks UI.

.github/workflows/main.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,11 @@ jobs:
2121
with:
2222
fetch-depth: 0
2323

24-
# Always use the latest stable Go release for the newest compiler and stdlib fixes.
24+
# Go version is read from go.mod so it stays in sync with the project.
2525
- name: Set up Go
2626
uses: actions/setup-go@v6
2727
with:
28-
go-version: 'stable'
28+
go-version-file: go.mod
2929

3030
# GoReleaser builds, packages and publishes the release.
3131
# See .goreleaser.yml for build targets and packaging configuration.

0 commit comments

Comments
 (0)