Skip to content

Commit 6c92eb3

Browse files
authored
chore(deps): bump to go 1.26.1 (#386)
1 parent e112cbf commit 6c92eb3

22 files changed

+368
-353
lines changed

.github/workflows/codeql-analysis.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ jobs:
5555

5656
# Initializes the CodeQL tools for scanning.
5757
- name: Initialize CodeQL
58-
uses: github/codeql-action/init@c793b717bc78562f491db7b0e93a3a178b099162 # v4.32.5
58+
uses: github/codeql-action/init@0d579ffd059c29b07949a3cce3983f0780820c98 # v4.32.6
5959
with:
6060
languages: ${{ matrix.language }}
6161
# If you wish to specify custom queries, you can do so here or in a config file.
@@ -66,7 +66,7 @@ jobs:
6666
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
6767
# If this step fails, then you should remove it and run the build manually (see below)
6868
- name: Autobuild
69-
uses: github/codeql-action/autobuild@c793b717bc78562f491db7b0e93a3a178b099162 # v4.32.5
69+
uses: github/codeql-action/autobuild@0d579ffd059c29b07949a3cce3983f0780820c98 # v4.32.6
7070

7171
# ℹ️ Command-line programs to run using the OS shell.
7272
# 📚 https://git.io/JvXDl
@@ -80,4 +80,4 @@ jobs:
8080
# make release
8181

8282
- name: Perform CodeQL Analysis
83-
uses: github/codeql-action/analyze@c793b717bc78562f491db7b0e93a3a178b099162 # v4.32.5
83+
uses: github/codeql-action/analyze@0d579ffd059c29b07949a3cce3983f0780820c98 # v4.32.6

.golangci.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,8 @@ linters:
5050
excludes:
5151
- G101 # hardcoded credentials
5252
- G117 # exported field of "Secret" style
53+
- G705
54+
- G704
5355
misspell:
5456
locale: US
5557
nolintlint:

go.mod

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
module github.com/go-vela/sdk-go
22

3-
go 1.25.7
3+
go 1.26.1
44

55
require (
66
github.com/coreos/go-semver v0.3.1
77
github.com/gin-gonic/gin v1.12.0
8-
github.com/go-vela/server v0.28.0-rc3
8+
github.com/go-vela/server v0.28.0-rc5
99
github.com/golang-jwt/jwt/v5 v5.3.1
1010
github.com/google/go-cmp v0.7.0
1111
github.com/google/go-querystring v1.2.0
@@ -49,7 +49,7 @@ require (
4949
github.com/mattn/go-isatty v0.0.20 // indirect
5050
github.com/minio/crc64nvme v1.1.1 // indirect
5151
github.com/minio/md5-simd v1.1.2 // indirect
52-
github.com/minio/minio-go/v7 v7.0.98 // indirect
52+
github.com/minio/minio-go/v7 v7.0.99 // indirect
5353
github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect
5454
github.com/modern-go/reflect2 v1.0.3-0.20250322232337-35a7c28c31ee // indirect
5555
github.com/pelletier/go-toml/v2 v2.2.4 // indirect
@@ -62,10 +62,10 @@ require (
6262
github.com/tinylib/msgp v1.6.1 // indirect
6363
github.com/twitchyliquid64/golang-asm v0.15.1 // indirect
6464
github.com/ugorji/go/codec v1.3.1 // indirect
65-
github.com/urfave/cli/v3 v3.6.2 // indirect
65+
github.com/urfave/cli/v3 v3.7.0 // indirect
6666
github.com/wk8/go-ordered-map/v2 v2.1.8 // indirect
6767
go.mongodb.org/mongo-driver/v2 v2.5.0 // indirect
68-
golang.org/x/arch v0.23.0 // indirect
68+
golang.org/x/arch v0.24.0 // indirect
6969
golang.org/x/crypto v0.48.0 // indirect
7070
golang.org/x/net v0.51.0 // indirect
7171
golang.org/x/sys v0.41.0 // indirect

go.sum

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,8 @@ github.com/go-playground/universal-translator v0.18.1 h1:Bcnm0ZwsGyWbCzImXv+pAJn
4242
github.com/go-playground/universal-translator v0.18.1/go.mod h1:xekY+UJKNuX9WP91TpwSH2VMlDf28Uj24BCp08ZFTUY=
4343
github.com/go-playground/validator/v10 v10.30.1 h1:f3zDSN/zOma+w6+1Wswgd9fLkdwy06ntQJp0BBvFG0w=
4444
github.com/go-playground/validator/v10 v10.30.1/go.mod h1:oSuBIQzuJxL//3MelwSLD5hc2Tu889bF0Idm9Dg26cM=
45-
github.com/go-vela/server v0.28.0-rc3 h1:M2zdKnJpbjcVkfyBbPH2zpY4NSPHs2Jnb/99T54z5RE=
46-
github.com/go-vela/server v0.28.0-rc3/go.mod h1:2enRAFzhb7hVUXaj7b9v1uuVHImbGktJ6SpkcMsWdN0=
45+
github.com/go-vela/server v0.28.0-rc5 h1:cPcthcsK4DpqRtZzjWhgrQmrgJE/UBMp1gStl5nh9IQ=
46+
github.com/go-vela/server v0.28.0-rc5/go.mod h1:WhELSZ/8rCH+Z/aRC9F5FWJy+bl/10yP2bKSLafOYlA=
4747
github.com/goccy/go-json v0.10.5 h1:Fq85nIqj+gXn/S5ahsiTlK3TmC85qgirsdTP/+DeaC4=
4848
github.com/goccy/go-json v0.10.5/go.mod h1:oq7eo15ShAhp70Anwd5lgX2pLfOS3QCiwU/PULtXL6M=
4949
github.com/goccy/go-yaml v1.19.2 h1:PmFC1S6h8ljIz6gMRBopkjP1TVT7xuwrButHID66PoM=
@@ -98,8 +98,8 @@ github.com/minio/crc64nvme v1.1.1 h1:8dwx/Pz49suywbO+auHCBpCtlW1OfpcLN7wYgVR6wAI
9898
github.com/minio/crc64nvme v1.1.1/go.mod h1:eVfm2fAzLlxMdUGc0EEBGSMmPwmXD5XiNRpnu9J3bvg=
9999
github.com/minio/md5-simd v1.1.2 h1:Gdi1DZK69+ZVMoNHRXJyNcxrMA4dSxoYHZSQbirFg34=
100100
github.com/minio/md5-simd v1.1.2/go.mod h1:MzdKDxYpY2BT9XQFocsiZf/NKVtR7nkE4RoEpN+20RM=
101-
github.com/minio/minio-go/v7 v7.0.98 h1:MeAVKjLVz+XJ28zFcuYyImNSAh8Mq725uNW4beRisi0=
102-
github.com/minio/minio-go/v7 v7.0.98/go.mod h1:cY0Y+W7yozf0mdIclrttzo1Iiu7mEf9y7nk2uXqMOvM=
101+
github.com/minio/minio-go/v7 v7.0.99 h1:2vH/byrwUkIpFQFOilvTfaUpvAX3fEFhEzO+DR3DlCE=
102+
github.com/minio/minio-go/v7 v7.0.99/go.mod h1:EtGNKtlX20iL2yaYnxEigaIvj0G0GwSDnifnG8ClIdw=
103103
github.com/modern-go/concurrent v0.0.0-20180228061459-e0a39a4cb421/go.mod h1:6dJC0mAP4ikYIbvyc7fijjWJddQyLn8Ig3JB5CqoB9Q=
104104
github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd h1:TRLaZ9cD/w8PVh93nsPXa1VrQ6jlwL5oN8l14QlcNfg=
105105
github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd/go.mod h1:6dJC0mAP4ikYIbvyc7fijjWJddQyLn8Ig3JB5CqoB9Q=
@@ -142,8 +142,8 @@ github.com/twitchyliquid64/golang-asm v0.15.1 h1:SU5vSMR7hnwNxj24w34ZyCi/FmDZTkS
142142
github.com/twitchyliquid64/golang-asm v0.15.1/go.mod h1:a1lVb/DtPvCB8fslRZhAngC2+aY1QWCk3Cedj/Gdt08=
143143
github.com/ugorji/go/codec v1.3.1 h1:waO7eEiFDwidsBN6agj1vJQ4AG7lh2yqXyOXqhgQuyY=
144144
github.com/ugorji/go/codec v1.3.1/go.mod h1:pRBVtBSKl77K30Bv8R2P+cLSGaTtex6fsA2Wjqmfxj4=
145-
github.com/urfave/cli/v3 v3.6.2 h1:lQuqiPrZ1cIz8hz+HcrG0TNZFxU70dPZ3Yl+pSrH9A8=
146-
github.com/urfave/cli/v3 v3.6.2/go.mod h1:ysVLtOEmg2tOy6PknnYVhDoouyC/6N42TMeoMzskhso=
145+
github.com/urfave/cli/v3 v3.7.0 h1:AGSnbUyjtLiM+WJUb4dzXKldl/gL+F8OwmRDtVr6g2U=
146+
github.com/urfave/cli/v3 v3.7.0/go.mod h1:ysVLtOEmg2tOy6PknnYVhDoouyC/6N42TMeoMzskhso=
147147
github.com/valyala/fastjson v1.6.7 h1:ZE4tRy0CIkh+qDc5McjatheGX2czdn8slQjomexVpBM=
148148
github.com/valyala/fastjson v1.6.7/go.mod h1:CLCAqky6SMuOcxStkYQvblddUtoRxhYMGLrsQns1aXY=
149149
github.com/wk8/go-ordered-map/v2 v2.1.8 h1:5h/BUHu93oj4gIdvHHHGsScSTMijfx5PeYkE/fJgbpc=
@@ -154,8 +154,8 @@ go.uber.org/mock v0.6.0 h1:hyF9dfmbgIX5EfOdasqLsWD6xqpNZlXblLB/Dbnwv3Y=
154154
go.uber.org/mock v0.6.0/go.mod h1:KiVJ4BqZJaMj4svdfmHM0AUx4NJYO8ZNpPnZn1Z+BBU=
155155
go.yaml.in/yaml/v3 v3.0.4 h1:tfq32ie2Jv2UxXFdLJdh3jXuOzWiL1fo0bu/FbuKpbc=
156156
go.yaml.in/yaml/v3 v3.0.4/go.mod h1:DhzuOOF2ATzADvBadXxruRBLzYTpT36CKvDb3+aBEFg=
157-
golang.org/x/arch v0.23.0 h1:lKF64A2jF6Zd8L0knGltUnegD62JMFBiCPBmQpToHhg=
158-
golang.org/x/arch v0.23.0/go.mod h1:dNHoOeKiyja7GTvF9NJS1l3Z2yntpQNzgrjh1cU103A=
157+
golang.org/x/arch v0.24.0 h1:qlJ3M9upxvFfwRM51tTg3Yl+8CP9vCC1E7vlFpgv99Y=
158+
golang.org/x/arch v0.24.0/go.mod h1:dNHoOeKiyja7GTvF9NJS1l3Z2yntpQNzgrjh1cU103A=
159159
golang.org/x/crypto v0.48.0 h1:/VRzVqiRSggnhY7gNRxPauEQ5Drw9haKdM0jqfcCFts=
160160
golang.org/x/crypto v0.48.0/go.mod h1:r0kV5h3qnFPlQnBSrULhlsRfryS2pmewsg+XfMgkVos=
161161
golang.org/x/net v0.51.0 h1:94R/GTO7mt3/4wIKpcR5gkGmRLOuE/2hNGeWq/GBIFo=

vela/admin_test.go

Lines changed: 40 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,10 @@ func TestAdmin_Build_Update_200(t *testing.T) {
3232
_ = json.Unmarshal(data, &want)
3333

3434
req := api.Build{
35-
Number: Int64(1),
36-
Parent: Int64(1),
37-
Event: String("push"),
38-
Status: String("running"),
35+
Number: new(int64(1)),
36+
Parent: new(int64(1)),
37+
Event: new("push"),
38+
Status: new("running"),
3939
}
4040

4141
// run test
@@ -63,7 +63,7 @@ func TestAdmin_Clean_200(t *testing.T) {
6363
want := server.CleanResourcesResp
6464

6565
req := api.Error{
66-
Message: String("msg"),
66+
Message: new("msg"),
6767
}
6868

6969
// run test
@@ -89,7 +89,7 @@ func TestAdmin_Clean_Error(t *testing.T) {
8989
c, _ := NewClient(s.URL, "", nil)
9090

9191
req := api.Error{
92-
Message: String("msg"),
92+
Message: new("msg"),
9393
}
9494

9595
opt500 := CleanOptions{
@@ -128,11 +128,11 @@ func TestAdmin_Deployment_Update_200(t *testing.T) {
128128
_ = json.Unmarshal(data, &want)
129129

130130
req := api.Deployment{
131-
Commit: String("48afb5bdc41ad69bf22588491333f7cf71135163"),
132-
Ref: String("refs/heads/main"),
133-
Task: String("vela-deploy"),
134-
Target: String("production"),
135-
Description: String("Deployment request from Vela"),
131+
Commit: new("48afb5bdc41ad69bf22588491333f7cf71135163"),
132+
Ref: new("refs/heads/main"),
133+
Task: new("vela-deploy"),
134+
Target: new("production"),
135+
Description: new("Deployment request from Vela"),
136136
}
137137

138138
// run test
@@ -164,9 +164,9 @@ func TestAdmin_Hook_Update_200(t *testing.T) {
164164
_ = json.Unmarshal(data, &want)
165165

166166
req := api.Hook{
167-
Number: Int64(1),
168-
Event: String("push"),
169-
Status: String("success"),
167+
Number: new(int64(1)),
168+
Event: new("push"),
169+
Status: new("success"),
170170
}
171171

172172
// run test
@@ -198,31 +198,31 @@ func TestAdmin_Repo_Update_200(t *testing.T) {
198198
_ = json.Unmarshal(data, &want)
199199

200200
req := api.Repo{
201-
Private: Bool(true),
202-
Trusted: Bool(true),
203-
Active: Bool(true),
201+
Private: new(true),
202+
Trusted: new(true),
203+
Active: new(true),
204204
AllowEvents: &api.Events{
205205
Push: &actions.Push{
206-
Branch: Bool(true),
207-
Tag: Bool(true),
208-
DeleteBranch: Bool(true),
209-
DeleteTag: Bool(true),
206+
Branch: new(true),
207+
Tag: new(true),
208+
DeleteBranch: new(true),
209+
DeleteTag: new(true),
210210
},
211211
PullRequest: &actions.Pull{
212-
Opened: Bool(true),
213-
Edited: Bool(true),
214-
Synchronize: Bool(true),
215-
Reopened: Bool(true),
212+
Opened: new(true),
213+
Edited: new(true),
214+
Synchronize: new(true),
215+
Reopened: new(true),
216216
},
217217
Deployment: &actions.Deploy{
218-
Created: Bool(true),
218+
Created: new(true),
219219
},
220220
Comment: &actions.Comment{
221-
Created: Bool(true),
222-
Edited: Bool(true),
221+
Created: new(true),
222+
Edited: new(true),
223223
},
224224
Schedule: &actions.Schedule{
225-
Run: Bool(true),
225+
Run: new(true),
226226
},
227227
},
228228
}
@@ -256,8 +256,8 @@ func TestAdmin_Secret_Update_200(t *testing.T) {
256256
_ = json.Unmarshal(data, &want)
257257

258258
req := api.Secret{
259-
Name: String("foo"),
260-
Value: String("bar"),
259+
Name: new("foo"),
260+
Value: new("bar"),
261261
AllowEvents: testEvents(),
262262
}
263263

@@ -290,10 +290,10 @@ func TestAdmin_Service_Update_200(t *testing.T) {
290290
_ = json.Unmarshal(data, &want)
291291

292292
req := api.Service{
293-
Number: Int32(1),
294-
Status: String("finished"),
295-
Started: Int64(1563475419),
296-
Finished: Int64(1563475419),
293+
Number: new(int32(1)),
294+
Status: new("finished"),
295+
Started: new(int64(1563475419)),
296+
Finished: new(int64(1563475419)),
297297
}
298298

299299
// run test
@@ -325,10 +325,10 @@ func TestAdmin_Step_Update_200(t *testing.T) {
325325
_ = json.Unmarshal(data, &want)
326326

327327
req := api.Step{
328-
Number: Int32(1),
329-
Status: String("finished"),
330-
Started: Int64(1563475419),
331-
Finished: Int64(1563475419),
328+
Number: new(int32(1)),
329+
Status: new("finished"),
330+
Started: new(int64(1563475419)),
331+
Finished: new(int64(1563475419)),
332332
}
333333

334334
// run test
@@ -360,7 +360,7 @@ func TestAdmin_User_Update_200(t *testing.T) {
360360
_ = json.Unmarshal(data, &want)
361361

362362
req := api.User{
363-
Name: String("octocat"),
363+
Name: new("octocat"),
364364
}
365365

366366
// run test

vela/authentication.go

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -41,16 +41,16 @@ type AuthenticationService struct {
4141

4242
// SetTokenAuth sets the authentication type as a plain token.
4343
func (svc *AuthenticationService) SetTokenAuth(token string) {
44-
svc.token = String(token)
44+
svc.token = new(token)
4545
svc.authType = AuthenticationToken
4646
}
4747

4848
// SetBuildTokenAuth sets the authentication type and the two tokens used.
4949
func (svc *AuthenticationService) SetBuildTokenAuth(buildTkn, scmTkn string, scmTokenExp int64, buildRepo string, buildNumber int64) {
50-
svc.token = String(buildTkn)
51-
svc.scmToken = String(scmTkn)
52-
svc.buildRepo = String(buildRepo)
53-
svc.buildNumber = Int64(buildNumber)
50+
svc.token = new(buildTkn)
51+
svc.scmToken = new(scmTkn)
52+
svc.buildRepo = new(buildRepo)
53+
svc.buildNumber = new(buildNumber)
5454

5555
// set expiration if provided - only for installation tokens
5656
if scmTokenExp > 0 {
@@ -62,14 +62,14 @@ func (svc *AuthenticationService) SetBuildTokenAuth(buildTkn, scmTkn string, scm
6262

6363
// SetPersonalAccessTokenAuth sets the authentication type as personal access token.
6464
func (svc *AuthenticationService) SetPersonalAccessTokenAuth(token string) {
65-
svc.personalAccessToken = String(token)
65+
svc.personalAccessToken = new(token)
6666
svc.authType = PersonalAccessToken
6767
}
6868

6969
// SetAccessAndRefreshAuth sets the authentication type as oauth token pair.
7070
func (svc *AuthenticationService) SetAccessAndRefreshAuth(access, refresh string) {
71-
svc.accessToken = String(access)
72-
svc.refreshToken = String(refresh)
71+
svc.accessToken = new(access)
72+
svc.refreshToken = new(refresh)
7373
svc.authType = AccessAndRefreshToken
7474
}
7575

0 commit comments

Comments
 (0)