Skip to content

Commit 155d8e1

Browse files
committed
fix: upgrade Go toolchain to 1.25.5 to address HIGH severity CVEs
Fixes #3807 Upgraded Go from 1.24 to 1.25.5 to resolve HIGH severity vulnerabilities in Go standard library (net/http, crypto, encoding packages). Changes: - Updated go.mod: go 1.24.1 -> go 1.25.5 - Updated GitHub Actions workflows (ci.yaml, release.yml, gh-pages.yaml) - Updated developer_guide.md: Golang 1.20+ -> Golang 1.25.3+ - Updated third_party prometheus-nats-exporter Dockerfile All dependencies verified compatible. Build and tests pass successfully. Signed-off-by: Yugan <yugannkt@gmail.com>
1 parent 14203e4 commit 155d8e1

File tree

6 files changed

+10
-10
lines changed

6 files changed

+10
-10
lines changed

.github/workflows/ci.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
- name: Setup Golang
2222
uses: actions/setup-go@v6
2323
with:
24-
go-version: "1.24"
24+
go-version: "1.25.5"
2525
- name: Restore go build cache
2626
uses: actions/cache@v5
2727
with:
@@ -48,7 +48,7 @@ jobs:
4848
- name: Setup Golang
4949
uses: actions/setup-go@v6
5050
with:
51-
go-version: "1.24"
51+
go-version: "1.25.5"
5252
- name: Restore go build cache
5353
uses: actions/cache@v5
5454
with:
@@ -75,7 +75,7 @@ jobs:
7575
- name: Setup Golang
7676
uses: actions/setup-go@v6
7777
with:
78-
go-version: "1.24"
78+
go-version: "1.25.5"
7979
- name: Restore go build cache
8080
uses: actions/cache@v5
8181
with:
@@ -108,7 +108,7 @@ jobs:
108108
- name: Setup Golang
109109
uses: actions/setup-go@v6
110110
with:
111-
go-version: "1.24"
111+
go-version: "1.25.5"
112112
- name: Restore go build cache
113113
uses: actions/cache@v5
114114
with:

.github/workflows/gh-pages.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
- name: Setup Golang
2424
uses: actions/setup-go@v6
2525
with:
26-
go-version: "1.24"
26+
go-version: "1.25.5"
2727
- name: build
2828
run: make docs
2929
- name: deploy

.github/workflows/release.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jobs:
2727
- name: Setup Go
2828
uses: actions/setup-go@v6
2929
with:
30-
go-version: "1.24"
30+
go-version: "1.25.5"
3131

3232
- name: Build binaries
3333
run: |
@@ -95,7 +95,7 @@ jobs:
9595
fi
9696
- uses: actions/setup-go@v6
9797
with:
98-
go-version: "1.24"
98+
go-version: "1.25.5"
9999
- uses: actions/checkout@v6
100100
- run: go install sigs.k8s.io/bom/cmd/bom@v0.2.0
101101
- run: go install github.com/spdx/spdx-sbom-generator/cmd/generator@v0.0.13

docs/developer_guide.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ another cluster you can ignore the Minikube specific step 3.
88

99
### Requirements
1010

11-
- Golang 1.20+
11+
- Golang 1.25.3+
1212
- Docker
1313

1414
### Installation & Setup

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module github.com/argoproj/argo-events
22

3-
go 1.24.1
3+
go 1.25.5
44

55
retract v1.15.1 // Contains retractions only.
66

third_party/prometheus-nats-exporter-docker/amd64/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Golang binary building stage
2-
FROM golang:1.20.2
2+
FROM golang:1.25.5
33
WORKDIR $GOPATH/src/github.com/nats-io/prometheus-nats-exporter
44
RUN git clone --branch v0.10.1 https://github.com/nats-io/prometheus-nats-exporter.git .
55
RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -v -a -tags netgo -installsuffix netgo -ldflags "-s -w"

0 commit comments

Comments
 (0)