Skip to content

Commit 5dbaab0

Browse files
Merge pull request #15 from step-security/fix/vulnerabilities
fix: removed vulnerabilities from action
2 parents 72d512c + 06c89fc commit 5dbaab0

5 files changed

Lines changed: 117 additions & 126 deletions

File tree

.golangci.yml

Lines changed: 46 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,41 +1,66 @@
1-
issues:
2-
exclude:
3-
# Check this issue for more info: https://github.com/kyoh86/scopelint/issues/4
4-
- Using the variable on range scope `tc` in function literal
1+
version: "2"
52

63
run:
74
tests: true
5+
86
linters:
9-
disable-all: true
7+
default: none
108
enable:
119
- gocritic
1210
- errcheck
13-
- gosimple
1411
- govet
1512
- ineffassign
1613
- staticcheck
17-
- typecheck
1814
- unused
1915
- revive
20-
- gofmt
2116
- misspell
2217
- gochecknoinits
2318
- unparam
24-
- exportloopref
2519
- gosec
26-
- goimports
2720
- whitespace
2821
- bodyclose
2922
- gocyclo
23+
settings:
24+
gocritic:
25+
enabled-tags:
26+
- diagnostic
27+
- style
28+
- performance
29+
- experimental
30+
- opinionated
31+
disabled-checks:
32+
- emptyStringTest
33+
errcheck:
34+
exclude-functions:
35+
- fmt.Fprintf
36+
- fmt.Fprintln
37+
- (*os.File).Close
38+
- (io.ReadCloser).Close
39+
revive:
40+
rules:
41+
- name: exported
42+
disabled: true
43+
- name: package-comments
44+
disabled: true
45+
- name: unused-parameter
46+
disabled: true
47+
gosec:
48+
excludes:
49+
- G104
50+
- G301
51+
- G302
52+
- G304
53+
- G703
54+
- G704
55+
staticcheck:
56+
checks:
57+
- "all"
58+
- "-QF1012"
59+
- "-ST1000"
60+
- "-ST1005"
61+
- "-ST1020"
3062

31-
fast: false
32-
33-
34-
linters-settings:
35-
gocritic:
36-
enabled-tags:
37-
- diagnostic
38-
- style
39-
- performance
40-
- experimental
41-
- opinionated
63+
formatters:
64+
enable:
65+
- gofmt
66+
- goimports

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM golang:1.21-alpine@sha256:2414035b086e3c42b99654c8b26e6f5b1b1598080d65fd03c7f499552ff4dc94 AS builder
1+
FROM golang:1.26-alpine@sha256:f85330846cde1e57ca9ec309382da3b8e6ae3ab943d2739500e08c86393a21b1 AS builder
22

33
# hadolint ignore=DL3018
44
RUN apk --no-cache add ca-certificates git

go.mod

Lines changed: 19 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module github.com/step-security/codeowners-validator
22

3-
go 1.21
3+
go 1.26
44

55
require (
66
github.com/bradleyfalzon/ghinstallation/v2 v2.9.0
@@ -11,22 +11,22 @@ require (
1111
github.com/mattn/go-zglob v0.0.4
1212
github.com/pkg/errors v0.9.1
1313
github.com/sebdah/goldie/v2 v2.5.3
14-
github.com/sergi/go-diff v1.3.1 // indirect
14+
github.com/sergi/go-diff v1.3.2-0.20230802210424-5b0b94c5c0d3 // indirect
1515
github.com/sirupsen/logrus v1.9.3
1616
github.com/spf13/afero v1.11.0
1717
github.com/spf13/pflag v1.0.5 // indirect
18-
github.com/stretchr/testify v1.8.4
18+
github.com/stretchr/testify v1.10.0
1919
github.com/vrischmann/envconfig v1.3.0
2020
go.szostok.io/version v1.2.0
21-
golang.org/x/crypto v0.19.0 // indirect
22-
golang.org/x/oauth2 v0.17.0
23-
golang.org/x/sys v0.17.0 // indirect
21+
golang.org/x/crypto v0.50.0 // indirect
22+
golang.org/x/oauth2 v0.36.0
23+
golang.org/x/sys v0.43.0 // indirect
2424
gopkg.in/pipe.v2 v2.0.0-20140414041502-3c2ca4d52544
2525
gotest.tools v2.2.0+incompatible
2626
)
2727

2828
require (
29-
github.com/go-git/go-git/v5 v5.11.0
29+
github.com/go-git/go-git/v5 v5.18.0
3030
github.com/spf13/cobra v1.8.0
3131
)
3232

@@ -35,21 +35,20 @@ require (
3535
github.com/Masterminds/goutils v1.1.1 // indirect
3636
github.com/Masterminds/semver/v3 v3.2.1 // indirect
3737
github.com/Masterminds/sprig/v3 v3.2.3 // indirect
38-
github.com/Microsoft/go-winio v0.6.1 // indirect
39-
github.com/ProtonMail/go-crypto v0.0.0-20230828082145-3c4c8a2d2371 // indirect
38+
github.com/Microsoft/go-winio v0.6.2 // indirect
39+
github.com/ProtonMail/go-crypto v1.1.6 // indirect
4040
github.com/araddon/dateparse v0.0.0-20210429162001-6b43995a97de // indirect
4141
github.com/aymanbagabas/go-osc52/v2 v2.0.1 // indirect
42-
github.com/cloudflare/circl v1.3.7 // indirect
43-
github.com/cyphar/filepath-securejoin v0.2.4 // indirect
42+
github.com/cloudflare/circl v1.6.3 // indirect
43+
github.com/cyphar/filepath-securejoin v0.4.1 // indirect
4444
github.com/davecgh/go-spew v1.1.1 // indirect
4545
github.com/emirpasic/gods v1.18.1 // indirect
4646
github.com/go-git/gcfg v1.5.1-0.20230307220236-3a3c6141e376 // indirect
47-
github.com/go-git/go-billy/v5 v5.5.0 // indirect
47+
github.com/go-git/go-billy/v5 v5.8.0 // indirect
4848
github.com/goccy/go-yaml v1.11.3 // indirect
49-
github.com/golang-jwt/jwt/v4 v4.5.0 // indirect
50-
github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da // indirect
51-
github.com/golang/protobuf v1.5.3 // indirect
52-
github.com/google/go-cmp v0.6.0 // indirect
49+
github.com/golang-jwt/jwt/v4 v4.5.2 // indirect
50+
github.com/golang/groupcache v0.0.0-20241129210726-2c02b8208cf8 // indirect
51+
github.com/google/go-cmp v0.7.0 // indirect
5352
github.com/google/go-github/v57 v57.0.0 // indirect
5453
github.com/google/go-querystring v1.1.0 // indirect
5554
github.com/google/uuid v1.6.0 // indirect
@@ -68,20 +67,16 @@ require (
6867
github.com/mitchellh/copystructure v1.2.0 // indirect
6968
github.com/mitchellh/reflectwalk v1.0.2 // indirect
7069
github.com/muesli/termenv v0.15.2 // indirect
71-
github.com/pjbgf/sha1cd v0.3.0 // indirect
70+
github.com/pjbgf/sha1cd v0.3.2 // indirect
7271
github.com/pmezard/go-difflib v1.0.0 // indirect
7372
github.com/rivo/uniseg v0.4.7 // indirect
7473
github.com/shopspring/decimal v1.3.1 // indirect
75-
github.com/skeema/knownhosts v1.2.1 // indirect
74+
github.com/skeema/knownhosts v1.3.1 // indirect
7675
github.com/spf13/cast v1.6.0 // indirect
7776
github.com/xanzy/ssh-agent v0.3.3 // indirect
78-
golang.org/x/mod v0.12.0 // indirect
79-
golang.org/x/net v0.21.0 // indirect
80-
golang.org/x/text v0.14.0 // indirect
81-
golang.org/x/tools v0.13.0 // indirect
77+
golang.org/x/net v0.53.0 // indirect
78+
golang.org/x/text v0.36.0 // indirect
8279
golang.org/x/xerrors v0.0.0-20231012003039-104605ab7028 // indirect
83-
google.golang.org/appengine v1.6.8 // indirect
84-
google.golang.org/protobuf v1.32.0 // indirect
8580
gopkg.in/warnings.v0 v0.1.2 // indirect
8681
gopkg.in/yaml.v3 v3.0.1 // indirect
8782
)

0 commit comments

Comments
 (0)