Skip to content

Commit 5aa2f27

Browse files
leo-aa88cursoragent
andcommitted
fix(ci): satisfy govulncheck (Go 1.25.10, golang.org/x/net v0.53.0)
- Pin CI and Docker builder to Go 1.25.10 (stdlib fixes for GO-2026-4977/4986/4982/4980/4971) - Bump golang.org/x/net to v0.53.0 (GO-2026-4918) and sync vendor/ - Raise go.mod minimum to 1.25.10; document in README prerequisites Co-authored-by: Cursor <cursoragent@cursor.com>
1 parent 17c98d8 commit 5aa2f27

8 files changed

Lines changed: 25 additions & 21 deletions

File tree

.github/workflows/ci.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525
- name: Set up Go
2626
uses: actions/setup-go@v5
2727
with:
28-
go-version: "1.25"
28+
go-version: "1.25.10"
2929
cache: true
3030
- name: Verify go.mod tidy
3131
run: |
@@ -40,7 +40,7 @@ jobs:
4040
- name: Set up Go
4141
uses: actions/setup-go@v5
4242
with:
43-
go-version: "1.25"
43+
go-version: "1.25.10"
4444
cache: true
4545
- name: Govulncheck
4646
run: go run golang.org/x/vuln/cmd/govulncheck@latest ./...
@@ -52,7 +52,7 @@ jobs:
5252
- name: Set up Go
5353
uses: actions/setup-go@v5
5454
with:
55-
go-version: "1.25"
55+
go-version: "1.25.10"
5656
cache: true
5757
- name: golangci-lint
5858
uses: golangci/golangci-lint-action@v7
@@ -67,7 +67,7 @@ jobs:
6767
- name: Set up Go
6868
uses: actions/setup-go@v5
6969
with:
70-
go-version: "1.25"
70+
go-version: "1.25.10"
7171
cache: true
7272

7373
- name: Build
@@ -82,7 +82,7 @@ jobs:
8282
- name: Set up Go
8383
uses: actions/setup-go@v5
8484
with:
85-
go-version: "1.25"
85+
go-version: "1.25.10"
8686
cache: true
8787

8888
- name: Unit tests with coverage

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Align with go.mod and CI.
2-
FROM golang:1.25-bookworm AS builder
2+
FROM golang:1.25.10-bookworm AS builder
33

44
WORKDIR /app
55

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ golang-rest-api-template/
100100

101101
### Prerequisites
102102

103-
- Go 1.25+
103+
- Go 1.25.10 or newer (see `go.mod`; aligns CI and Docker with `govulncheck` / patched stdlib)
104104
- Docker
105105
- Docker Compose
106106

go.mod

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module golang-rest-api-template
22

3-
go 1.25.0
3+
go 1.25.10
44

55
require (
66
github.com/araujo88/gin-gonic-xss-middleware v0.0.0-20221014023455-d89f16de6a7e
@@ -79,7 +79,7 @@ require (
7979
go.uber.org/multierr v1.10.0 // indirect
8080
golang.org/x/arch v0.23.0 // indirect
8181
golang.org/x/mod v0.34.0 // indirect
82-
golang.org/x/net v0.52.0 // indirect
82+
golang.org/x/net v0.53.0 // indirect
8383
golang.org/x/sys v0.43.0 // indirect
8484
golang.org/x/text v0.36.0 // indirect
8585
golang.org/x/tools v0.43.0 // indirect

go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -186,8 +186,8 @@ golang.org/x/net v0.0.0-20210226172049-e18ecbb05110/go.mod h1:m0MpNAwzfU5UDzcl9v
186186
golang.org/x/net v0.0.0-20210405180319-a5a99cb37ef4/go.mod h1:p54w0d4576C0XHj96bSt6lcn1PtDYWL6XObtHCRCNQM=
187187
golang.org/x/net v0.0.0-20220722155237-a158d28d115b/go.mod h1:XRhObCWvk6IyKnWLug+ECip1KBveYUHfp+8e9klMJ9c=
188188
golang.org/x/net v0.7.0/go.mod h1:2Tu9+aMcznHK/AK1HMvgo6xiTLG5rD5rZLDS+rp2Bjs=
189-
golang.org/x/net v0.52.0 h1:He/TN1l0e4mmR3QqHMT2Xab3Aj3L9qjbhRm78/6jrW0=
190-
golang.org/x/net v0.52.0/go.mod h1:R1MAz7uMZxVMualyPXb+VaqGSa3LIaUqk0eEt3w36Sw=
189+
golang.org/x/net v0.53.0 h1:d+qAbo5L0orcWAr0a9JweQpjXF19LMXJE8Ey7hwOdUA=
190+
golang.org/x/net v0.53.0/go.mod h1:JvMuJH7rrdiCfbeHoo3fCQU24Lf5JJwT9W3sJFulfgs=
191191
golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
192192
golang.org/x/sync v0.0.0-20210220032951-036812b2e83c/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
193193
golang.org/x/sync v0.0.0-20220722155255-886fb9371eb4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=

vendor/golang.org/x/net/http2/hpack/tables.go

Lines changed: 10 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

vendor/golang.org/x/net/http2/transport.go

Lines changed: 3 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

vendor/modules.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -409,7 +409,7 @@ golang.org/x/crypto/sha3
409409
golang.org/x/mod/internal/lazyregexp
410410
golang.org/x/mod/module
411411
golang.org/x/mod/semver
412-
# golang.org/x/net v0.52.0
412+
# golang.org/x/net v0.53.0
413413
## explicit; go 1.25.0
414414
golang.org/x/net/bpf
415415
golang.org/x/net/html

0 commit comments

Comments
 (0)