Skip to content

Commit ebd326c

Browse files
feat: [CI-20437]: Update golang version (#86)
* fix: [CI-20437] Golang version update for vulnerability fix * fix: [CI-20437] Golang version update for vulnerability fix * fix: [CI-20437] Golang version update for vulnerability fix * fix: [CI-20437] Golang version update for vulnerability fix
1 parent 5203496 commit ebd326c

File tree

4 files changed

+29
-29
lines changed

4 files changed

+29
-29
lines changed

.drone.yml

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ platform:
1212

1313
steps:
1414
- name: vet
15-
image: golang:1.23
15+
image: golang:1.24.11
1616
commands:
1717
- go vet ./...
1818
environment:
@@ -22,7 +22,7 @@ steps:
2222
path: /go
2323

2424
- name: test
25-
image: golang:1.23
25+
image: golang:1.24.11
2626
commands:
2727
- go test -cover ./...
2828
environment:
@@ -55,7 +55,7 @@ platform:
5555

5656
steps:
5757
- name: go build
58-
image: golang:1.23
58+
image: golang:1.24.11
5959
environment:
6060
CGO_ENABLED: 0
6161
commands:
@@ -98,7 +98,7 @@ platform:
9898

9999
steps:
100100
- name: go build
101-
image: golang:1.23
101+
image: golang:1.24.11
102102
environment:
103103
CGO_ENABLED: 0
104104
commands:
@@ -141,7 +141,7 @@ platform:
141141

142142
steps:
143143
- name: build-push
144-
image: golang:1.23
144+
image: golang:1.24.11
145145
commands:
146146
- 'go build -v -ldflags "-X main.version=${DRONE_COMMIT_SHA:0:8}" -a -tags netgo -o release/linux/amd64/drone-docker ./cmd/drone-docker'
147147
environment:
@@ -152,7 +152,7 @@ steps:
152152
- tag
153153

154154
- name: build-tag
155-
image: golang:1.23
155+
image: golang:1.24.11
156156
commands:
157157
- 'go build -v -ldflags "-X main.version=${DRONE_TAG##v}" -a -tags netgo -o release/linux/amd64/drone-docker ./cmd/drone-docker'
158158
environment:
@@ -162,7 +162,7 @@ steps:
162162
- tag
163163

164164
- name: executable
165-
image: golang:1.23
165+
image: golang:1.24.11
166166
commands:
167167
- ./release/linux/amd64/drone-docker --help
168168

@@ -211,7 +211,7 @@ platform:
211211

212212
steps:
213213
- name: build-push
214-
image: golang:1.23
214+
image: golang:1.24.11
215215
commands:
216216
- 'go build -v -ldflags "-X main.version=${DRONE_COMMIT_SHA:0:8}" -a -tags netgo -o release/linux/arm64/drone-docker ./cmd/drone-docker'
217217
environment:
@@ -222,7 +222,7 @@ steps:
222222
- tag
223223

224224
- name: build-tag
225-
image: golang:1.23
225+
image: golang:1.24.11
226226
commands:
227227
- 'go build -v -ldflags "-X main.version=${DRONE_TAG##v}" -a -tags netgo -o release/linux/arm64/drone-docker ./cmd/drone-docker'
228228
environment:
@@ -232,7 +232,7 @@ steps:
232232
- tag
233233

234234
- name: executable
235-
image: golang:1.23
235+
image: golang:1.24.11
236236
commands:
237237
- ./release/linux/arm64/drone-docker --help
238238

@@ -316,7 +316,7 @@ platform:
316316

317317
steps:
318318
- name: build-push
319-
image: golang:1.23
319+
image: golang:1.24.11
320320
commands:
321321
- 'go build -v -ldflags "-X main.version=${DRONE_COMMIT_SHA:0:8}" -a -tags netgo -o release/linux/amd64/drone-heroku ./cmd/drone-heroku'
322322
environment:
@@ -326,7 +326,7 @@ steps:
326326
exclude:
327327
- tag
328328
- name: build-tag
329-
image: golang:1.23
329+
image: golang:1.24.11
330330
commands:
331331
- 'go build -v -ldflags "-X main.version=${DRONE_TAG##v}" -a -tags netgo -o release/linux/amd64/drone-heroku ./cmd/drone-heroku'
332332
environment:
@@ -380,7 +380,7 @@ platform:
380380

381381
steps:
382382
- name: build-push
383-
image: golang:1.23
383+
image: golang:1.24.11
384384
commands:
385385
- 'go build -v -ldflags "-X main.version=${DRONE_COMMIT_SHA:0:8}" -a -tags netgo -o release/linux/arm64/drone-heroku ./cmd/drone-heroku'
386386
environment:
@@ -390,7 +390,7 @@ steps:
390390
exclude:
391391
- tag
392392
- name: build-tag
393-
image: golang:1.23
393+
image: golang:1.24.11
394394
commands:
395395
- 'go build -v -ldflags "-X main.version=${DRONE_TAG##v}" -a -tags netgo -o release/linux/arm64/drone-heroku ./cmd/drone-heroku'
396396
environment:
@@ -475,7 +475,7 @@ pool:
475475
steps:
476476
- name: build
477477
pull: always
478-
image: golang:1.23
478+
image: golang:1.24.11
479479
commands:
480480
- GOOS=linux GOARCH=amd64 go build -ldflags "-s -w" -a -tags netgo -o release/drone-buildx-linux-amd64 ./cmd/drone-docker
481481
- GOOS=linux GOARCH=arm64 go build -ldflags "-s -w" -a -tags netgo -o release/drone-buildx-linux-arm64 ./cmd/drone-docker

.harness/harness.yaml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ pipeline:
3333
name: Vet
3434
spec:
3535
connectorRef: Plugins_Docker_Hub_Connector
36-
image: golang:1.23.0
36+
image: golang:1.24.11
3737
shell: Sh
3838
command: go vet ./...
3939
- step:
@@ -42,7 +42,7 @@ pipeline:
4242
name: Test
4343
spec:
4444
connectorRef: Plugins_Docker_Hub_Connector
45-
image: golang:1.23.0
45+
image: golang:1.24.11
4646
shell: Sh
4747
command: go test -cover ./...
4848
- parallel:
@@ -70,7 +70,7 @@ pipeline:
7070
name: Build Binary
7171
spec:
7272
connectorRef: Plugins_Docker_Hub_Connector
73-
image: golang:1.23.0
73+
image: golang:1.24.11
7474
shell: Sh
7575
command: |-
7676
# force go modules
@@ -150,7 +150,7 @@ pipeline:
150150
name: Build Binary
151151
spec:
152152
connectorRef: Plugins_Docker_Hub_Connector
153-
image: golang:1.23.0
153+
image: golang:1.24.11
154154
shell: Sh
155155
command: |-
156156
# force go modules
@@ -230,7 +230,7 @@ pipeline:
230230
name: Build Binary
231231
spec:
232232
connectorRef: Plugins_Docker_Hub_Connector
233-
image: golang:1.23.0
233+
image: golang:1.24.11
234234
shell: Sh
235235
command: |-
236236
# force go modules
@@ -310,7 +310,7 @@ pipeline:
310310
name: Build Binary
311311
spec:
312312
connectorRef: Plugins_Docker_Hub_Connector
313-
image: golang:1.23.0
313+
image: golang:1.24.11
314314
shell: Sh
315315
command: |-
316316
# force go modules
@@ -384,7 +384,7 @@ pipeline:
384384
identifier: Build_Binary
385385
spec:
386386
connectorRef: Plugins_Docker_Hub_Connector
387-
image: golang:1.23.0
387+
image: golang:1.24.11
388388
shell: Sh
389389
command: |-
390390
# force go modules
@@ -468,7 +468,7 @@ pipeline:
468468
name: Build Binary
469469
spec:
470470
connectorRef: Plugins_Docker_Hub_Connector
471-
image: golang:1.23.0
471+
image: golang:1.24.11
472472
shell: Sh
473473
command: |-
474474
# force go modules
@@ -555,7 +555,7 @@ pipeline:
555555
name: Build Binaries
556556
spec:
557557
connectorRef: Plugins_Docker_Hub_Connector
558-
image: golang:1.23.0
558+
image: golang:1.24.11
559559
shell: Sh
560560
command: |-
561561
GOOS=linux GOARCH=amd64 go build -ldflags "-s -w" -a -tags netgo -o release/drone-buildx-linux-amd64 ./cmd/drone-docker

go.mod

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ require (
77
github.com/drone/drone-go v1.7.1
88
github.com/inhies/go-bytesize v0.0.0-20210819104631-275770b98743
99
github.com/joho/godotenv v1.3.0
10-
github.com/sirupsen/logrus v1.9.0
10+
github.com/sirupsen/logrus v1.9.3
1111
github.com/stretchr/testify v1.7.0
1212
github.com/urfave/cli v1.22.2
1313
)
@@ -24,6 +24,6 @@ require (
2424
gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b // indirect
2525
)
2626

27-
go 1.23.0
27+
go 1.24.11
2828

29-
toolchain go1.24.2
29+
toolchain go1.25.5

go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@ github.com/russross/blackfriday/v2 v2.0.1/go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQD
2929
github.com/russross/blackfriday/v2 v2.1.0 h1:JIOH55/0cWyOuilr9/qlrm0BSXldqnqwMsf35Ld67mk=
3030
github.com/russross/blackfriday/v2 v2.1.0/go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQDYRxCVz55jmeOWTM=
3131
github.com/shurcooL/sanitized_anchor_name v1.0.0/go.mod h1:1NzhyTcUVG4SuEtjjoZeVRXNmyL/1OwPU0+IJeTBvfc=
32-
github.com/sirupsen/logrus v1.9.0 h1:trlNQbNUG3OdDrDil03MCb1H2o9nJ1x4/5LYw7byDE0=
33-
github.com/sirupsen/logrus v1.9.0/go.mod h1:naHLuLoDiP4jHNo9R0sCBMtWGeIprob74mVsIT4qYEQ=
32+
github.com/sirupsen/logrus v1.9.3 h1:dueUQJ1C2q9oE3F7wvmSGAaVtTmUizReu6fjN8uqzbQ=
33+
github.com/sirupsen/logrus v1.9.3/go.mod h1:naHLuLoDiP4jHNo9R0sCBMtWGeIprob74mVsIT4qYEQ=
3434
github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME=
3535
github.com/stretchr/testify v1.7.0 h1:nwc3DEeHmmLAfoZucVR881uASk0Mfjw8xYJ99tb5CcY=
3636
github.com/stretchr/testify v1.7.0/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg=

0 commit comments

Comments
 (0)