-
-
Notifications
You must be signed in to change notification settings - Fork 655
Closed
Description
Summary
Doesn't seem to work to pass a single -include
Steps to reproduce the behavior
$ gosec -include=G115 ./...
[gosec] 2024/09/19 10:06:50 Including rules: G115
[gosec] 2024/09/19 10:06:50 Excluding rules: default
[gosec] 2024/09/19 10:06:50 No rules are configured
gosec version
2.21.3
Go version (output of 'go version')
go version go1.22.7 darwin/arm64
Operating system / Environment
macOS
Expected behavior
runs G115 scan
Actual behavior
No rules are configured
Also tried
$ gosec -include=G115 --exclude="" ./...
[gosec] 2024/09/19 10:10:27 Including rules: G115
[gosec] 2024/09/19 10:10:27 Excluding rules: default
[gosec] 2024/09/19 10:10:27 No rules are configured
which btw I think is... wrong too... should say Excluding rules: none or some such ?
and to check I don't have a typo:
$ gosec 2>&1 |grep G115
G115: Type conversion which leads to integer overflow
Metadata
Metadata
Assignees
Labels
No labels