Skip to content

Commit 1491157

Browse files
authored
chore(ci): add govulncheck to CI (#2395)
Adds `govulncheck` to CI and upgrades reported dependencies: - go-ethereum v1.16.8 -> v1.17.0 - otel/sdk v1.39.0 -> v1.40.0 - go-chi v5.2.2 -> v5.2.4 Some transitive dependencies were also updated, namely: - crypto v0.47.0 - oauth2 v0.34.0 And a Go version bump to `v1.25.7`
1 parent 1280dc1 commit 1491157

6 files changed

Lines changed: 96 additions & 92 deletions

File tree

.github/workflows/test.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,10 @@ jobs:
5454
run: |
5555
set -x
5656
make sec
57+
- name: Run govulncheck
58+
run: |
59+
set -x
60+
make vulncheck
5761
- name: Init Database
5862
run: psql -f hack/init_postgres.sql postgresql://postgres:root@localhost:5432/postgres
5963
- name: Run migrations

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM golang:1.25.5-alpine3.23 as build
1+
FROM golang:1.25.7-alpine3.23 as build
22
ENV GO111MODULE=on
33
ENV CGO_ENABLED=0
44
ENV GOOS=linux

Dockerfile.dev

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM golang:1.25.5-alpine3.23
1+
FROM golang:1.25.7-alpine3.23
22
ENV GO111MODULE=on
33
ENV CGO_ENABLED=0
44
ENV GOOS=linux

Makefile

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
.PHONY: all build deps image migrate test vet sec format unused
2-
.PHONY: check-gosec check-oapi-codegen check-staticcheck
1+
.PHONY: all build deps image migrate test vet sec vulncheck format unused
2+
.PHONY: check-gosec check-govulncheck check-oapi-codegen check-staticcheck
33
CHECK_FILES?=./...
44

55
ifdef RELEASE_VERSION
@@ -59,6 +59,13 @@ check-gosec:
5959
@command -v gosec >/dev/null 2>&1 \
6060
|| go install github.com/securego/gosec/v2/cmd/gosec@latest
6161

62+
vulncheck: check-govulncheck # Check for known vulnerabilities
63+
govulncheck $(CHECK_FILES)
64+
65+
check-govulncheck:
66+
@command -v govulncheck >/dev/null 2>&1 \
67+
|| go install golang.org/x/vuln/cmd/govulncheck@latest
68+
6269
unused: | check-staticcheck # Look for unused code
6370
@echo "Unused code:"
6471
staticcheck -checks U1000 $(CHECK_FILES)

go.mod

Lines changed: 27 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
module github.com/supabase/auth
22

33
require (
4-
github.com/Masterminds/semver/v3 v3.1.1 // indirect
4+
github.com/Masterminds/semver/v3 v3.1.1
55
github.com/aaronarduino/goqrsvg v0.0.0-20220419053939-17e843f1dd40
66
github.com/ajstarks/svgo v0.0.0-20211024235047-1546f124cd8b
77
github.com/badoux/checkmail v0.0.0-20170203135005-d0a759655d62
@@ -28,21 +28,20 @@ require (
2828
github.com/sirupsen/logrus v1.9.3
2929
github.com/spf13/cobra v1.8.1
3030
github.com/stretchr/testify v1.11.1
31-
golang.org/x/crypto v0.45.0
32-
golang.org/x/oauth2 v0.27.0
31+
golang.org/x/crypto v0.47.0
32+
golang.org/x/oauth2 v0.34.0
3333
gopkg.in/gomail.v2 v2.0.0-20160411212932-81ebce5c23df
3434
)
3535

3636
require (
3737
github.com/ProjectZKM/Ziren/crates/go-runtime/zkvm_runtime v0.0.0-20251001021608-1fe7b43fc4d6 // indirect
3838
github.com/bits-and-blooms/bitset v1.20.0 // indirect
39+
github.com/cenkalti/backoff/v5 v5.0.3 // indirect
3940
github.com/consensys/gnark-crypto v0.18.1 // indirect
4041
github.com/crate-crypto/go-eth-kzg v1.4.0 // indirect
41-
github.com/crate-crypto/go-ipa v0.0.0-20240724233137-53bbb0ceb27a // indirect
4242
github.com/decred/dcrd/dcrec/secp256k1/v4 v4.3.0 // indirect
4343
github.com/dprotaso/go-yit v0.0.0-20220510233725-9ba8df137936 // indirect
4444
github.com/ethereum/c-kzg-4844/v2 v2.1.5 // indirect
45-
github.com/ethereum/go-verkle v0.2.2 // indirect
4645
github.com/fxamacker/cbor/v2 v2.7.0 // indirect
4746
github.com/getkin/kin-openapi v0.131.0 // indirect
4847
github.com/go-jose/go-jose/v3 v3.0.4 // indirect
@@ -74,24 +73,24 @@ require (
7473
github.com/xeipuuv/gojsonpointer v0.0.0-20180127040702-4e3ac2762d5f // indirect
7574
github.com/xeipuuv/gojsonreference v0.0.0-20180127040603-bd5ef7bd5415 // indirect
7675
go.opentelemetry.io/auto/sdk v1.2.1 // indirect
77-
golang.org/x/mod v0.29.0 // indirect
78-
golang.org/x/tools v0.38.0 // indirect
79-
google.golang.org/genproto/googleapis/api v0.0.0-20240227224415-6ceb2ff114de // indirect
80-
google.golang.org/genproto/googleapis/rpc v0.0.0-20240401170217-c3f982113cda // indirect
76+
golang.org/x/mod v0.31.0 // indirect
77+
golang.org/x/tools v0.40.0 // indirect
78+
google.golang.org/genproto/googleapis/api v0.0.0-20260128011058-8636f8732409 // indirect
79+
google.golang.org/genproto/googleapis/rpc v0.0.0-20260128011058-8636f8732409 // indirect
8180
)
8281

8382
require (
8483
github.com/XSAM/otelsql v0.26.0
8584
github.com/bombsimon/logrusr/v3 v3.0.0
8685
go.opentelemetry.io/contrib/instrumentation/runtime v0.45.0
87-
go.opentelemetry.io/otel v1.39.0
88-
go.opentelemetry.io/otel/exporters/otlp/otlptrace v1.19.0
89-
go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc v1.19.0
90-
go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracehttp v1.19.0
91-
go.opentelemetry.io/otel/metric v1.39.0
92-
go.opentelemetry.io/otel/sdk v1.39.0
93-
go.opentelemetry.io/otel/sdk/metric v1.39.0
94-
go.opentelemetry.io/otel/trace v1.39.0
86+
go.opentelemetry.io/otel v1.40.0
87+
go.opentelemetry.io/otel/exporters/otlp/otlptrace v1.40.0
88+
go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc v1.40.0
89+
go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracehttp v1.40.0
90+
go.opentelemetry.io/otel/metric v1.40.0
91+
go.opentelemetry.io/otel/sdk v1.40.0
92+
go.opentelemetry.io/otel/sdk/metric v1.40.0
93+
go.opentelemetry.io/otel/trace v1.40.0
9594
gopkg.in/h2non/gock.v1 v1.1.2
9695
)
9796

@@ -101,7 +100,7 @@ require (
101100
github.com/crewjam/saml v0.4.14
102101
github.com/fatih/structs v1.1.0
103102
github.com/fsnotify/fsnotify v1.7.0
104-
github.com/go-chi/chi/v5 v5.2.2
103+
github.com/go-chi/chi/v5 v5.2.4
105104
github.com/go-webauthn/webauthn v0.11.1
106105
github.com/gobuffalo/pop/v6 v6.1.1
107106
github.com/golang-jwt/jwt/v5 v5.2.2
@@ -126,7 +125,7 @@ require (
126125
github.com/cespare/xxhash/v2 v2.3.0 // indirect
127126
github.com/crewjam/httperr v0.2.0 // indirect
128127
github.com/davecgh/go-spew v1.1.1 // indirect
129-
github.com/ethereum/go-ethereum v1.16.8
128+
github.com/ethereum/go-ethereum v1.17.0
130129
github.com/fatih/color v1.16.0 // indirect
131130
github.com/felixge/httpsnoop v1.0.4 // indirect
132131
github.com/go-logr/logr v1.4.3 // indirect
@@ -142,7 +141,7 @@ require (
142141
github.com/golang-jwt/jwt/v4 v4.5.2 // indirect
143142
github.com/google/uuid v1.6.0 // indirect
144143
github.com/gorilla/css v1.0.0 // indirect
145-
github.com/grpc-ecosystem/grpc-gateway/v2 v2.19.1 // indirect
144+
github.com/grpc-ecosystem/grpc-gateway/v2 v2.27.7 // indirect
146145
github.com/h2non/parth v0.0.0-20190131123155-b4df798d6542 // indirect
147146
github.com/inconshreveable/mousetrap v1.1.0 // indirect
148147
github.com/jackc/chunkreader/v2 v2.0.1 // indirect
@@ -170,18 +169,18 @@ require (
170169
github.com/sourcegraph/syntaxhighlight v0.0.0-20170531221838-bd320f5d308e // indirect
171170
github.com/spf13/pflag v1.0.6 // indirect
172171
github.com/stretchr/objx v0.5.2 // indirect
173-
go.opentelemetry.io/proto/otlp v1.2.0 // indirect
172+
go.opentelemetry.io/proto/otlp v1.9.0 // indirect
174173
golang.org/x/exp v0.0.0-20230811145659-89c5cff77bcb
175-
golang.org/x/net v0.47.0 // indirect
176-
golang.org/x/sync v0.18.0
177-
golang.org/x/sys v0.39.0
178-
golang.org/x/text v0.31.0
174+
golang.org/x/net v0.49.0 // indirect
175+
golang.org/x/sync v0.19.0
176+
golang.org/x/sys v0.40.0
177+
golang.org/x/text v0.33.0
179178
golang.org/x/time v0.9.0
180-
google.golang.org/grpc v1.63.2 // indirect
181-
google.golang.org/protobuf v1.34.2 // indirect
179+
google.golang.org/grpc v1.78.0 // indirect
180+
google.golang.org/protobuf v1.36.11 // indirect
182181
gopkg.in/alexcesaro/quotedprintable.v3 v3.0.0-20150716171945-2caba252f4dc // indirect
183182
gopkg.in/yaml.v2 v2.4.0 // indirect
184183
gopkg.in/yaml.v3 v3.0.1 // indirect
185184
)
186185

187-
go 1.25.5
186+
go 1.25.7

0 commit comments

Comments
 (0)