-
Notifications
You must be signed in to change notification settings - Fork 482
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
Despite #247 NOPASSWD is still detected #265
Comments
It looks like the bug is that the In this case, the key that is flagged is the existence of Since The fix here would be to filter out false positives in both the keys and the values. However, that could be a trickier fix than expected. |
also, is there a way to turn off this one detection plugin? |
Try |
Halleluyah! too well hidden for my taste, but I'll take it. |
I feel the same way @ira-bv, we haven't done anything hacky around |
Changelog for 0.13.0 indicates that after #247 the directive
NOPASSWD
should be excluded from results. However it seems that this is not the case.Steps to reproduce:
sudoers
) with the following content:(directive is copied from the
/etc/sudoers
file from an Archlinux install)detect-secrets scan --exclude-files '.venv' --all-files
Expected results:
Actual results:
Note: the
--exclude-files '.venv'
directive was added because detect-secrets was installed in a virtualenvThe text was updated successfully, but these errors were encountered: