-
-
Notifications
You must be signed in to change notification settings - Fork 654
Closed
Description
Just to illustrate the problem I'm testing this on a checkout of https://github.com/kubernetes/kubernetes
.
Using gosec v2.17.0 to scan a package from the kubernetes repo takes 0m49.899s.
Using gosec v2.16.0 to scan the same package takes 0m1.764s.
Using gosec v2.17.0 to scan the same package excluding G602 takes 0m1.748s.
$ go install github.com/securego/gosec/v2/cmd/gosec@v2.17.0
$ time ~/go/bin/gosec ./staging/src/k8s.io/api/core/v1/
[...]
Summary:
Gosec : dev
Files : 14
Lines : 88306
Nosec : 0
Issues : 12
real 0m49.899s
user 1m25.262s
sys 0m2.669s
$ go install github.com/securego/gosec/v2/cmd/gosec@v2.16.0
$ time ~/go/bin/gosec ./staging/src/k8s.io/api/core/v1/
[...]
Summary:
Gosec : dev
Files : 14
Lines : 88306
Nosec : 0
Issues : 12
real 0m1.764s
user 0m3.564s
sys 0m0.674s
$ go install github.com/securego/gosec/v2/cmd/gosec@v2.17.0
$ time ~/go/bin/gosec -exclude=G602 ./staging/src/k8s.io/api/core/v1/
[...]
Summary:
Gosec : dev
Files : 14
Lines : 88306
Nosec : 0
Issues : 12
real 0m1.748s
user 0m3.565s
sys 0m0.738s
akulakhan, Goryudyuma, Jdwoodson and ryancurrah
Metadata
Metadata
Assignees
Labels
No labels