Skip to content

Commit 62af25b

Browse files
Fix: security issues (#14)
* Fix: security issues * Update workflows
1 parent f834899 commit 62af25b

File tree

3 files changed

+89
-58
lines changed

3 files changed

+89
-58
lines changed

.github/workflows/tests.yml

Lines changed: 21 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -4,36 +4,37 @@ on:
44
name: Tests
55
jobs:
66
lint:
7-
name: lint
7+
name: Linter
88
runs-on: ubuntu-latest
99
steps:
10-
- uses: actions/setup-go@v3
10+
- name: Checkout code
11+
uses: actions/checkout@v4
12+
- name: Set up Go
13+
uses: actions/setup-go@v5
1114
with:
12-
go-version: '1.20'
13-
- uses: actions/checkout@v3
15+
go-version: '1.23'
16+
cache: false
1417
- name: golangci-lint
15-
uses: golangci/golangci-lint-action@v3
18+
uses: golangci/golangci-lint-action@v6
1619
with:
17-
version: v1.51.2
18-
args: --timeout=3m
20+
version: v1.60.3
21+
args: --timeout=5m
22+
1923
test:
24+
name: Test
2025
runs-on: ubuntu-latest
2126
steps:
22-
- name: install Go
23-
uses: actions/setup-go@v2
24-
with:
25-
go-version: 1.20.x
26-
- name: checkout code
27-
uses: actions/checkout@v2
28-
- uses: actions/cache@v2
27+
- name: Checkout code
28+
uses: actions/checkout@v4
29+
30+
- name: Install Go
31+
uses: actions/setup-go@v5
2932
with:
30-
path: ~/go/pkg/mod
31-
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
32-
restore-keys: |
33-
${{ runner.os }}-go-
34-
- name: golang tests
33+
go-version: 1.23.x
34+
35+
- name: Golang tests
3536
env:
3637
GO111MODULE: on
3738
run: |
3839
go mod download
39-
go test ./...
40+
go test -p 8 ./...

go.mod

Lines changed: 18 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,11 @@
11
module github.com/dipdup-net/indexer-sdk
22

3-
go 1.22
4-
5-
toolchain go1.23.2
3+
go 1.23.2
64

75
require (
86
github.com/dipdup-io/workerpool v0.0.4
97
github.com/dipdup-net/go-lib v0.3.6
10-
github.com/ethereum/go-ethereum v1.13.10
8+
github.com/ethereum/go-ethereum v1.13.15
119
github.com/go-testfixtures/testfixtures/v3 v3.9.0
1210
github.com/grpc-ecosystem/go-grpc-middleware/providers/prometheus v1.0.0-rc.0
1311
github.com/grpc-ecosystem/go-grpc-middleware/v2 v2.0.0-rc.5
@@ -24,7 +22,7 @@ require (
2422
go.uber.org/mock v0.5.0
2523
golang.org/x/time v0.3.0
2624
google.golang.org/grpc v1.58.3
27-
google.golang.org/protobuf v1.31.0
25+
google.golang.org/protobuf v1.33.0
2826
gopkg.in/yaml.v3 v3.0.1
2927
)
3028

@@ -49,14 +47,17 @@ require (
4947
github.com/crate-crypto/go-kzg-4844 v0.7.0 // indirect
5048
github.com/davecgh/go-spew v1.1.1 // indirect
5149
github.com/decred/dcrd/dcrec/secp256k1/v4 v4.2.0 // indirect
52-
github.com/docker/distribution v2.8.2+incompatible // indirect
53-
github.com/docker/docker v24.0.7+incompatible // indirect
50+
github.com/distribution/reference v0.6.0 // indirect
51+
github.com/docker/docker v25.0.6+incompatible // indirect
5452
github.com/docker/go-connections v0.4.0 // indirect
5553
github.com/docker/go-units v0.5.0 // indirect
5654
github.com/ethereum/c-kzg-4844 v0.4.0 // indirect
55+
github.com/felixge/httpsnoop v1.0.3 // indirect
5756
github.com/gabriel-vasile/mimetype v1.4.2 // indirect
5857
github.com/go-faster/city v1.0.1 // indirect
5958
github.com/go-faster/errors v0.6.1 // indirect
59+
github.com/go-logr/logr v1.2.4 // indirect
60+
github.com/go-logr/stdr v1.2.2 // indirect
6061
github.com/go-pg/pg/v10 v10.11.1 // indirect
6162
github.com/go-pg/zerochecker v0.2.0 // indirect
6263
github.com/go-playground/locales v0.14.1 // indirect
@@ -70,7 +71,8 @@ require (
7071
github.com/inconshreveable/mousetrap v1.1.0 // indirect
7172
github.com/jackc/pgpassfile v1.0.0 // indirect
7273
github.com/jackc/pgservicefile v0.0.0-20221227161230-091c0ba34f0a // indirect
73-
github.com/jackc/pgx/v5 v5.4.3 // indirect
74+
github.com/jackc/pgx/v5 v5.5.4 // indirect
75+
github.com/jackc/puddle/v2 v2.2.1 // indirect
7476
github.com/jinzhu/inflection v1.0.0 // indirect
7577
github.com/jinzhu/now v1.1.5 // indirect
7678
github.com/klauspost/compress v1.16.7 // indirect
@@ -83,14 +85,14 @@ require (
8385
github.com/mmcloughlin/addchain v0.4.0 // indirect
8486
github.com/moby/patternmatcher v0.5.0 // indirect
8587
github.com/moby/sys/sequential v0.5.0 // indirect
88+
github.com/moby/sys/user v0.3.0 // indirect
8689
github.com/moby/term v0.5.0 // indirect
8790
github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect
8891
github.com/modern-go/reflect2 v1.0.2 // indirect
8992
github.com/morikuni/aec v1.0.0 // indirect
9093
github.com/nxadm/tail v1.4.8 // indirect
9194
github.com/opencontainers/go-digest v1.0.0 // indirect
9295
github.com/opencontainers/image-spec v1.1.0-rc4 // indirect
93-
github.com/opencontainers/runc v1.1.9 // indirect
9496
github.com/paulmach/orb v0.10.0 // indirect
9597
github.com/pierrec/lz4/v4 v4.1.18 // indirect
9698
github.com/pmezard/go-difflib v1.0.0 // indirect
@@ -110,15 +112,17 @@ require (
110112
github.com/vmihailenco/msgpack/v5 v5.3.5 // indirect
111113
github.com/vmihailenco/tagparser v0.1.2 // indirect
112114
github.com/vmihailenco/tagparser/v2 v2.0.0 // indirect
115+
go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.45.0 // indirect
113116
go.opentelemetry.io/otel v1.19.0 // indirect
117+
go.opentelemetry.io/otel/metric v1.19.0 // indirect
114118
go.opentelemetry.io/otel/trace v1.19.0 // indirect
115-
golang.org/x/crypto v0.24.0 // indirect
119+
golang.org/x/crypto v0.31.0 // indirect
116120
golang.org/x/exp v0.0.0-20231110203233-9a3e6036ecaa // indirect
117121
golang.org/x/mod v0.18.0 // indirect
118-
golang.org/x/net v0.26.0 // indirect
119-
golang.org/x/sync v0.7.0 // indirect
120-
golang.org/x/sys v0.21.0 // indirect
121-
golang.org/x/text v0.16.0 // indirect
122+
golang.org/x/net v0.33.0 // indirect
123+
golang.org/x/sync v0.10.0 // indirect
124+
golang.org/x/sys v0.28.0 // indirect
125+
golang.org/x/text v0.21.0 // indirect
122126
golang.org/x/tools v0.22.0 // indirect
123127
google.golang.org/genproto/googleapis/rpc v0.0.0-20230807174057-1744710a1577 // indirect
124128
gorm.io/driver/mysql v1.5.1 // indirect

0 commit comments

Comments
 (0)