Skip to content

Commit 3f39044

Browse files
chore: security fix, patch go version (#806)
## What <!-- What is changing in this PR? --> ## Why <!-- Why are these changes being made? --> ## Notes <!-- Add any additional notes here -->
1 parent 50b6ace commit 3f39044

4 files changed

Lines changed: 81 additions & 75 deletions

File tree

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM golang:1.25.7-alpine3.23 AS base
1+
FROM golang:1.25.10-alpine3.23 AS base
22

33
WORKDIR /go/src/github.com/codefresh-io/cli-v2
44

@@ -27,7 +27,7 @@ RUN go mod verify
2727

2828
############################### CLI ###############################
2929
### Compile
30-
FROM golang:1.25.7-alpine3.23 AS codefresh-build
30+
FROM golang:1.25.10-alpine3.23 AS codefresh-build
3131

3232
WORKDIR /go/src/github.com/codefresh-io/cli-v2
3333

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
VERSION=v1.0.2
1+
VERSION=v1.0.3
22

33
GOLANGCI_LINT_VERSION?= v2.8.0
44

go.mod

Lines changed: 30 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ go 1.25.7
44

55
require (
66
github.com/Masterminds/semver/v3 v3.4.0
7-
github.com/argoproj/argo-cd/v3 v3.3.6
7+
github.com/argoproj/argo-cd/v3 v3.3.9
88
github.com/codefresh-io/go-sdk v1.4.15
99
github.com/fatih/color v1.18.0
1010
github.com/gobuffalo/packr v1.30.1
@@ -20,12 +20,12 @@ require (
2020
github.com/stretchr/testify v1.11.1
2121
golang.org/x/exp v0.0.0-20241108190413-2d47ceb2692f
2222
gopkg.in/segmentio/analytics-go.v3 v3.1.0
23-
helm.sh/helm/v3 v3.18.6
24-
k8s.io/api v0.34.0
25-
k8s.io/apimachinery v0.34.0
26-
k8s.io/cli-runtime v0.34.0
27-
k8s.io/client-go v0.34.0
28-
k8s.io/kubectl v0.34.0
23+
helm.sh/helm/v3 v3.20.2
24+
k8s.io/api v0.35.1
25+
k8s.io/apimachinery v0.35.1
26+
k8s.io/cli-runtime v0.35.1
27+
k8s.io/client-go v0.35.1
28+
k8s.io/kubectl v0.35.1
2929
sigs.k8s.io/kustomize/api v0.20.1
3030
sigs.k8s.io/kustomize/kyaml v0.20.1
3131
sigs.k8s.io/yaml v1.6.0
@@ -40,7 +40,7 @@ require (
4040
github.com/Azure/azure-sdk-for-go/sdk/internal v1.11.2 // indirect
4141
github.com/Azure/go-ansiterm v0.0.0-20250102033503-faa5f7b0171c // indirect
4242
github.com/AzureAD/microsoft-authentication-library-for-go v1.6.0 // indirect
43-
github.com/BurntSushi/toml v1.5.0 // indirect
43+
github.com/BurntSushi/toml v1.6.0 // indirect
4444
github.com/MakeNowJust/heredoc v1.0.0 // indirect
4545
github.com/Masterminds/goutils v1.1.1 // indirect
4646
github.com/Masterminds/sprig/v3 v3.3.0 // indirect
@@ -65,8 +65,8 @@ require (
6565
github.com/chzyer/readline v1.5.1 // indirect
6666
github.com/clipperhouse/stringish v0.1.1 // indirect
6767
github.com/clipperhouse/uax29/v2 v2.3.0 // indirect
68-
github.com/cloudflare/circl v1.6.1 // indirect
69-
github.com/containerd/containerd v1.7.29 // indirect
68+
github.com/cloudflare/circl v1.6.3 // indirect
69+
github.com/containerd/containerd v1.7.30 // indirect
7070
github.com/containerd/errdefs v1.0.0 // indirect
7171
github.com/containerd/log v0.1.0 // indirect
7272
github.com/containerd/platforms v0.2.1 // indirect
@@ -87,8 +87,8 @@ require (
8787
github.com/fxamacker/cbor/v2 v2.9.0 // indirect
8888
github.com/go-errors/errors v1.5.1 // indirect
8989
github.com/go-git/gcfg v1.5.1-0.20230307220236-3a3c6141e376 // indirect
90-
github.com/go-git/go-billy/v5 v5.6.2 // indirect
91-
github.com/go-git/go-git/v5 v5.14.0 // indirect
90+
github.com/go-git/go-billy/v5 v5.8.0 // indirect
91+
github.com/go-git/go-git/v5 v5.19.0 // indirect
9292
github.com/go-gorp/gorp/v3 v3.1.0 // indirect
9393
github.com/go-logr/logr v1.4.3 // indirect
9494
github.com/go-logr/stdr v1.2.2 // indirect
@@ -145,7 +145,7 @@ require (
145145
github.com/mitchellh/go-wordwrap v1.0.1 // indirect
146146
github.com/mitchellh/mapstructure v1.5.0 // indirect
147147
github.com/mitchellh/reflectwalk v1.0.2 // indirect
148-
github.com/moby/spdystream v0.5.0 // indirect
148+
github.com/moby/spdystream v0.5.1 // indirect
149149
github.com/moby/term v0.5.2 // indirect
150150
github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect
151151
github.com/modern-go/reflect2 v1.0.3-0.20250322232337-35a7c28c31ee // indirect
@@ -168,7 +168,7 @@ require (
168168
github.com/redis/go-redis/v9 v9.8.0 // indirect
169169
github.com/robfig/cron/v3 v3.0.2-0.20210106135023-bc59245fe10e // indirect
170170
github.com/rogpeppe/go-internal v1.14.1 // indirect
171-
github.com/rubenv/sql-migrate v1.8.0 // indirect
171+
github.com/rubenv/sql-migrate v1.8.1 // indirect
172172
github.com/russross/blackfriday/v2 v2.1.0 // indirect
173173
github.com/sagikazarmark/locafero v0.4.0 // indirect
174174
github.com/sagikazarmark/slog-shim v0.1.0 // indirect
@@ -191,51 +191,51 @@ require (
191191
github.com/xtgo/uuid v0.0.0-20140804021211-a0b114877d4c // indirect
192192
go.opentelemetry.io/auto/sdk v1.2.1 // indirect
193193
go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.63.0 // indirect
194-
go.opentelemetry.io/otel v1.40.0 // indirect
195-
go.opentelemetry.io/otel/metric v1.40.0 // indirect
196-
go.opentelemetry.io/otel/trace v1.40.0 // indirect
194+
go.opentelemetry.io/otel v1.41.0 // indirect
195+
go.opentelemetry.io/otel/metric v1.41.0 // indirect
196+
go.opentelemetry.io/otel/trace v1.41.0 // indirect
197197
go.uber.org/multierr v1.11.0 // indirect
198-
go.yaml.in/yaml/v2 v2.4.2 // indirect
198+
go.yaml.in/yaml/v2 v2.4.3 // indirect
199199
go.yaml.in/yaml/v3 v3.0.4 // indirect
200200
golang.org/x/crypto v0.46.0 // indirect
201-
golang.org/x/mod v0.30.0 // indirect
201+
golang.org/x/mod v0.31.0 // indirect
202202
golang.org/x/net v0.48.0 // indirect
203203
golang.org/x/oauth2 v0.34.0 // indirect
204204
golang.org/x/sync v0.19.0 // indirect
205-
golang.org/x/sys v0.40.0 // indirect
206-
golang.org/x/term v0.38.0 // indirect
207-
golang.org/x/text v0.32.0 // indirect
205+
golang.org/x/sys v0.42.0 // indirect
206+
golang.org/x/term v0.39.0 // indirect
207+
golang.org/x/text v0.33.0 // indirect
208208
golang.org/x/time v0.14.0 // indirect
209209
google.golang.org/genproto v0.0.0-20240401170217-c3f982113cda // indirect
210210
google.golang.org/genproto/googleapis/api v0.0.0-20251202230838-ff82c1b0f217 // indirect
211211
google.golang.org/genproto/googleapis/rpc v0.0.0-20251202230838-ff82c1b0f217 // indirect
212212
google.golang.org/grpc v1.79.3 // indirect
213213
google.golang.org/protobuf v1.36.11 // indirect
214-
gopkg.in/evanphx/json-patch.v4 v4.12.0 // indirect
214+
gopkg.in/evanphx/json-patch.v4 v4.13.0 // indirect
215215
gopkg.in/inf.v0 v0.9.1 // indirect
216216
gopkg.in/ini.v1 v1.67.0 // indirect
217217
gopkg.in/warnings.v0 v0.1.2 // indirect
218218
gopkg.in/yaml.v2 v2.4.0 // indirect
219219
gopkg.in/yaml.v3 v3.0.1 // indirect
220-
k8s.io/apiextensions-apiserver v0.34.0 // indirect
221-
k8s.io/apiserver v0.34.0 // indirect
222-
k8s.io/component-base v0.34.0 // indirect
220+
k8s.io/apiextensions-apiserver v0.35.1 // indirect
221+
k8s.io/apiserver v0.35.1 // indirect
222+
k8s.io/component-base v0.35.1 // indirect
223223
k8s.io/component-helpers v0.34.0 // indirect
224224
k8s.io/controller-manager v0.34.0 // indirect
225225
k8s.io/klog/v2 v2.130.1 // indirect
226226
k8s.io/kube-aggregator v0.34.0 // indirect
227-
k8s.io/kube-openapi v0.0.0-20250710124328-f3f2b991d03b // indirect
227+
k8s.io/kube-openapi v0.0.0-20250910181357-589584f1c912 // indirect
228228
k8s.io/kubernetes v1.34.2 // indirect
229-
k8s.io/utils v0.0.0-20250604170112-4c0f3b243397 // indirect
229+
k8s.io/utils v0.0.0-20251002143259-bc988d571ff4 // indirect
230230
oras.land/oras-go/v2 v2.6.0 // indirect
231-
sigs.k8s.io/json v0.0.0-20241014173422-cfa47c3a1cc8 // indirect
231+
sigs.k8s.io/json v0.0.0-20250730193827-2d320260d730 // indirect
232232
sigs.k8s.io/randfill v1.0.0 // indirect
233233
sigs.k8s.io/structured-merge-diff/v6 v6.3.1-0.20251003215857-446d8398e19c // indirect
234234
)
235235

236236
replace (
237237
// Avoid CVE-2026-25934
238-
github.com/go-git/go-git/v5 => github.com/go-git/go-git/v5 v5.16.5
238+
github.com/go-git/go-git/v5 => github.com/go-git/go-git/v5 v5.18.0
239239

240240
github.com/go-telegram-bot-api/telegram-bot-api/v5 => github.com/OvyFlash/telegram-bot-api/v5 v5.0.0-20240108230938-63e5c59035bf
241241

0 commit comments

Comments
 (0)