Skip to content

Commit 1f95008

Browse files
authored
Bumps (#143)
1 parent b9af889 commit 1f95008

12 files changed

Lines changed: 73 additions & 128 deletions

File tree

.github/workflows/build.yaml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,12 @@ jobs:
66
runs-on: ubuntu-latest
77

88
steps:
9-
- uses: actions/checkout@v3
9+
- uses: actions/checkout@v6
1010
- name: Setup Go
11-
uses: actions/setup-go@v3
11+
uses: actions/setup-go@v6
12+
with:
13+
go-version: '1.25'
14+
cache: true
1215
- name: Build
1316
run: go build ./...
1417
- name: Test

.github/workflows/codeql.yml

Lines changed: 0 additions & 74 deletions
This file was deleted.

.github/workflows/lint.yaml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,12 @@ jobs:
1515
golangci:
1616
runs-on: ubuntu-latest
1717
steps:
18-
- uses: actions/setup-go@v3
19-
- uses: actions/checkout@v3
18+
- uses: actions/checkout@v6
19+
- uses: actions/setup-go@v6
20+
with:
21+
go-version: '1.25'
22+
cache: true
2023
- name: golangci-lint
21-
uses: golangci/golangci-lint-action@v3
24+
uses: golangci/golangci-lint-action@v9
25+
with:
26+
version: v2.8

.github/workflows/release.yaml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ name: release
22

33
on:
44
push:
5-
# run only against tags
65
tags:
76
- '*'
87

@@ -13,13 +12,13 @@ jobs:
1312
goreleaser:
1413
runs-on: ubuntu-latest
1514
steps:
16-
- uses: actions/checkout@v3
15+
- uses: actions/checkout@v6
1716
with:
1817
fetch-depth: 0
1918
- run: git fetch --force --tags
20-
- uses: actions/setup-go@v4
19+
- uses: actions/setup-go@v6
2120
with:
22-
go-version: '>=1.24'
21+
go-version: '1.25'
2322
cache: true
2423
- uses: goreleaser/goreleaser-action@v4
2524
with:

.golangci.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
version: "2"
2+
3+
linters:
4+
exclusions:
5+
rules:
6+
- linters:
7+
- errcheck
8+
source: "^\\s*defer\\s+"

.mise.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[tools]
2+
go = '1.25'
3+
golangci-lint = '2.8.0'

CODEOWNERS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
* @mbilski @ikawalec @jdabrowski

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,6 @@ test:
88
go test ./...
99

1010
lint:
11-
docker run --rm -v $(shell pwd):/app -w /app golangci/golangci-lint:v1.64.5 golangci-lint run
11+
golangci-lint run
1212

1313
all: build test lint

cmd/oauth2.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ import (
1414

1515
"github.com/cli/browser"
1616
"github.com/cloudentity/oauth2c/internal/oauth2"
17-
"github.com/imdario/mergo"
17+
"dario.cat/mergo"
1818
"github.com/spf13/cobra"
1919
)
2020

@@ -227,16 +227,16 @@ func (c *OAuth2Cmd) Authorize(
227227
return c.DeviceGrantFlow(clientConfig, serverConfig, hc)
228228
}
229229

230-
return fmt.Errorf("Unknown grant type: %s", clientConfig.GrantType)
230+
return fmt.Errorf("unknown grant type: %s", clientConfig.GrantType)
231231
}
232232

233233
func (c *OAuth2Cmd) PrintResult(result interface{}) {
234234
output, err := json.Marshal(result)
235235
if err != nil {
236-
fmt.Fprintf(c.ErrOrStderr(), "%+v", err)
237-
fmt.Fprintln(c.ErrOrStderr())
236+
_, _ = fmt.Fprintf(c.ErrOrStderr(), "%+v", err)
237+
_, _ = fmt.Fprintln(c.ErrOrStderr())
238238
return
239239
}
240240

241-
fmt.Fprintln(c.OutOrStdout(), string(output))
241+
_, _ = fmt.Fprintln(c.OutOrStdout(), string(output))
242242
}

go.mod

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -3,21 +3,20 @@ module github.com/cloudentity/oauth2c
33
go 1.24.0
44

55
require (
6+
dario.cat/mergo v1.0.2
67
github.com/cli/browser v1.3.1-0.20231006085632-b393df5d7bfa
78
github.com/go-jose/go-jose/v3 v3.0.4
89
github.com/go-playground/locales v0.14.1
910
github.com/go-playground/universal-translator v0.18.1
10-
github.com/go-playground/validator/v10 v10.28.0
11-
github.com/golang-jwt/jwt/v4 v4.5.2
11+
github.com/go-playground/validator/v10 v10.30.1
1212
github.com/google/uuid v1.6.0
1313
github.com/grantae/certinfo v0.0.0-20170412194111-59d56a35515b
1414
github.com/hashicorp/go-multierror v1.1.1
15-
github.com/imdario/mergo v0.3.16
1615
github.com/itchyny/gojq v0.12.10
1716
github.com/lithammer/shortuuid/v4 v4.2.0
1817
github.com/pkg/errors v0.9.1
1918
github.com/pterm/pterm v0.12.82
20-
github.com/spf13/cobra v1.10.1
19+
github.com/spf13/cobra v1.10.2
2120
github.com/stretchr/testify v1.8.4
2221
github.com/tidwall/pretty v1.2.1
2322
)
@@ -27,10 +26,10 @@ require (
2726
atomicgo.dev/keyboard v0.2.9 // indirect
2827
atomicgo.dev/schedule v0.1.0 // indirect
2928
github.com/clipperhouse/stringish v0.1.1 // indirect
30-
github.com/clipperhouse/uax29/v2 v2.3.0 // indirect
29+
github.com/clipperhouse/uax29/v2 v2.3.1 // indirect
3130
github.com/containerd/console v1.0.5 // indirect
3231
github.com/davecgh/go-spew v1.1.1 // indirect
33-
github.com/gabriel-vasile/mimetype v1.4.11 // indirect
32+
github.com/gabriel-vasile/mimetype v1.4.12 // indirect
3433
github.com/gookit/color v1.6.0 // indirect
3534
github.com/hashicorp/errwrap v1.1.0 // indirect
3635
github.com/inconshreveable/mousetrap v1.1.0 // indirect
@@ -41,9 +40,9 @@ require (
4140
github.com/pmezard/go-difflib v1.0.0 // indirect
4241
github.com/spf13/pflag v1.0.10 // indirect
4342
github.com/xo/terminfo v0.0.0-20220910002029-abceb7e1c41e // indirect
44-
golang.org/x/crypto v0.45.0 // indirect
45-
golang.org/x/sys v0.38.0 // indirect
46-
golang.org/x/term v0.37.0 // indirect
47-
golang.org/x/text v0.31.0 // indirect
43+
golang.org/x/crypto v0.47.0 // indirect
44+
golang.org/x/sys v0.40.0 // indirect
45+
golang.org/x/term v0.39.0 // indirect
46+
golang.org/x/text v0.33.0 // indirect
4847
gopkg.in/yaml.v3 v3.0.1 // indirect
4948
)

0 commit comments

Comments
 (0)