Skip to content

Commit 6f82e80

Browse files
authored
Bump k8s.io dependencies and golang.org/x/oauth2 to fix CVE-2025-22868 (#388)
Security update, fix CVE Signed-off-by: Yaroslav Kavokin <yaroslav.kavokin@flant.com>
1 parent d65944a commit 6f82e80

File tree

5 files changed

+120
-98
lines changed

5 files changed

+120
-98
lines changed

.github/workflows/ci.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,9 @@ jobs:
1919
runs-on: ubuntu-latest
2020

2121
steps:
22-
- uses: actions/setup-go@v5
22+
- uses: actions/setup-go@v6
2323
with:
24-
go-version: '1.23'
24+
go-version: '1.24'
2525

2626
- uses: actions/checkout@v5
2727

@@ -40,9 +40,9 @@ jobs:
4040
steps:
4141
- uses: actions/checkout@v5
4242

43-
- uses: actions/setup-go@v5
43+
- uses: actions/setup-go@v6
4444
with:
45-
go-version: '1.23'
45+
go-version: '1.24'
4646

4747
- name: Download golangci-lint
4848
run: make bin/golangci-lint

.golangci.yml

Lines changed: 22 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,27 @@
1-
run:
2-
timeout: 10m
3-
1+
version: "2"
42
linters:
5-
disable-all: true
3+
default: none
64
enable:
75
- govet
8-
- revive
96
- promlinter
7+
- revive
8+
exclusions:
9+
generated: lax
10+
presets:
11+
- comments
12+
- common-false-positives
13+
- legacy
14+
- std-error-handling
15+
paths:
16+
- third_party$
17+
- builtin$
18+
- examples$
19+
formatters:
20+
enable:
1021
- gofmt
22+
exclusions:
23+
generated: lax
24+
paths:
25+
- third_party$
26+
- builtin$
27+
- examples$

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ export SHELL := env PATH=$(PATH) /bin/sh
33

44
GOOS?=$(shell go env GOOS)
55
GOARCH?=$(shell go env GOARCH)
6-
GOLANGCI_VERSION = 1.62.2
6+
GOLANGCI_VERSION = 2.5.0
77
HELM_DOCS_VERSION = 1.11.0
88

99
ifeq ($(GOARCH),arm)

go.mod

Lines changed: 29 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,22 @@
11
module github.com/flant/k8s-image-availability-exporter
22

3-
go 1.23.0
4-
5-
toolchain go1.23.2
3+
go 1.24.0
64

75
require (
86
github.com/aws/aws-node-termination-handler v1.25.1
97
github.com/aws/aws-sdk-go-v2/config v1.29.14
108
github.com/aws/aws-sdk-go-v2/service/ecr v1.44.0
119
github.com/gammazero/deque v0.2.1
12-
github.com/google/go-containerregistry v0.20.3
10+
github.com/google/go-containerregistry v0.20.6
1311
github.com/google/go-containerregistry/pkg/authn/kubernetes v0.0.0-20240129192428-8dadbe76ff8c
1412
github.com/prometheus/client_golang v1.22.0
1513
github.com/sirupsen/logrus v1.9.3
1614
github.com/stretchr/testify v1.10.0
17-
k8s.io/api v0.32.3
18-
k8s.io/apimachinery v0.32.3
19-
k8s.io/client-go v0.32.3
20-
k8s.io/sample-controller v0.32.3
21-
sigs.k8s.io/controller-runtime v0.20.4
15+
k8s.io/api v0.34.1
16+
k8s.io/apimachinery v0.34.1
17+
k8s.io/client-go v0.34.1
18+
k8s.io/sample-controller v0.34.1
19+
sigs.k8s.io/controller-runtime v0.22.3
2220
)
2321

2422
require (
@@ -38,20 +36,18 @@ require (
3836
github.com/cespare/xxhash/v2 v2.3.0 // indirect
3937
github.com/containerd/stargz-snapshotter/estargz v0.16.3 // indirect
4038
github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc // indirect
41-
github.com/docker/cli v27.5.0+incompatible // indirect
39+
github.com/docker/cli v28.2.2+incompatible // indirect
4240
github.com/docker/distribution v2.8.3+incompatible // indirect
43-
github.com/docker/docker-credential-helpers v0.8.2 // indirect
44-
github.com/emicklei/go-restful/v3 v3.11.3 // indirect
45-
github.com/fxamacker/cbor/v2 v2.7.0 // indirect
46-
github.com/go-logr/logr v1.4.2 // indirect
41+
github.com/docker/docker-credential-helpers v0.9.3 // indirect
42+
github.com/emicklei/go-restful/v3 v3.12.2 // indirect
43+
github.com/fxamacker/cbor/v2 v2.9.0 // indirect
44+
github.com/go-logr/logr v1.4.3 // indirect
4745
github.com/go-openapi/jsonpointer v0.21.0 // indirect
4846
github.com/go-openapi/jsonreference v0.20.4 // indirect
4947
github.com/go-openapi/swag v0.23.0 // indirect
5048
github.com/gogo/protobuf v1.3.2 // indirect
51-
github.com/golang/protobuf v1.5.4 // indirect
52-
github.com/google/gnostic-models v0.6.8 // indirect
49+
github.com/google/gnostic-models v0.7.0 // indirect
5350
github.com/google/go-cmp v0.7.0 // indirect
54-
github.com/google/gofuzz v1.2.0 // indirect
5551
github.com/google/uuid v1.6.0 // indirect
5652
github.com/josharian/intern v1.0.0 // indirect
5753
github.com/json-iterator/go v1.1.12 // indirect
@@ -61,34 +57,37 @@ require (
6157
github.com/mattn/go-isatty v0.0.17 // indirect
6258
github.com/mitchellh/go-homedir v1.1.0 // indirect
6359
github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect
64-
github.com/modern-go/reflect2 v1.0.2 // indirect
60+
github.com/modern-go/reflect2 v1.0.3-0.20250322232337-35a7c28c31ee // indirect
6561
github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822 // indirect
6662
github.com/opencontainers/go-digest v1.0.0 // indirect
67-
github.com/opencontainers/image-spec v1.1.0 // indirect
63+
github.com/opencontainers/image-spec v1.1.1 // indirect
6864
github.com/pkg/errors v0.9.1 // indirect
6965
github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2 // indirect
7066
github.com/prometheus/client_model v0.6.1 // indirect
7167
github.com/prometheus/common v0.62.0 // indirect
7268
github.com/prometheus/procfs v0.15.1 // indirect
7369
github.com/rs/zerolog v1.29.0 // indirect
74-
github.com/spf13/pflag v1.0.5 // indirect
75-
github.com/vbatts/tar-split v0.11.6 // indirect
70+
github.com/spf13/pflag v1.0.6 // indirect
71+
github.com/vbatts/tar-split v0.12.1 // indirect
7672
github.com/x448/float16 v0.8.4 // indirect
73+
go.yaml.in/yaml/v2 v2.4.2 // indirect
74+
go.yaml.in/yaml/v3 v3.0.4 // indirect
7775
golang.org/x/net v0.38.0 // indirect
78-
golang.org/x/oauth2 v0.25.0 // indirect
79-
golang.org/x/sync v0.12.0 // indirect
80-
golang.org/x/sys v0.31.0 // indirect
76+
golang.org/x/oauth2 v0.30.0 // indirect
77+
golang.org/x/sync v0.15.0 // indirect
78+
golang.org/x/sys v0.33.0 // indirect
8179
golang.org/x/term v0.30.0 // indirect
8280
golang.org/x/text v0.23.0 // indirect
83-
golang.org/x/time v0.7.0 // indirect
81+
golang.org/x/time v0.9.0 // indirect
8482
google.golang.org/protobuf v1.36.5 // indirect
8583
gopkg.in/evanphx/json-patch.v4 v4.12.0 // indirect
8684
gopkg.in/inf.v0 v0.9.1 // indirect
8785
gopkg.in/yaml.v3 v3.0.1 // indirect
8886
k8s.io/klog/v2 v2.130.1 // indirect
89-
k8s.io/kube-openapi v0.0.0-20241105132330-32ad38e42d3f // indirect
90-
k8s.io/utils v0.0.0-20241104100929-3ea5e8cea738 // indirect
91-
sigs.k8s.io/json v0.0.0-20241010143419-9aa6b5e7a4b3 // indirect
92-
sigs.k8s.io/structured-merge-diff/v4 v4.4.2 // indirect
93-
sigs.k8s.io/yaml v1.4.0 // indirect
87+
k8s.io/kube-openapi v0.0.0-20250710124328-f3f2b991d03b // indirect
88+
k8s.io/utils v0.0.0-20250604170112-4c0f3b243397 // indirect
89+
sigs.k8s.io/json v0.0.0-20241014173422-cfa47c3a1cc8 // indirect
90+
sigs.k8s.io/randfill v1.0.0 // indirect
91+
sigs.k8s.io/structured-merge-diff/v6 v6.3.0 // indirect
92+
sigs.k8s.io/yaml v1.6.0 // indirect
9493
)

0 commit comments

Comments
 (0)