Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

standalone run, can't run a single rule ? #1230

Closed
ldemailly opened this issue Sep 19, 2024 · 0 comments · Fixed by #1231
Closed

standalone run, can't run a single rule ? #1230

ldemailly opened this issue Sep 19, 2024 · 0 comments · Fixed by #1231

Comments

@ldemailly
Copy link
Contributor

ldemailly commented Sep 19, 2024

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant