-
Notifications
You must be signed in to change notification settings - Fork 505
Support scanning multiple specified files on the command line #180
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
Comments
I think (from researching a little on the code out of curiosity) that it's only scanning the first argument (file or directory). Maybe this one is the 'offending' function: detect-secrets/detect_secrets/core/usage.py Line 120 in 1f3322c
As it's using '?' nargs that reads only one argument if possible [0]. I'm sure that @domanchi or @KevinHock can throw more light on this issue. |
That's accurate. Shouldn't be too hard to modify this such that it can scan multiple files with the command line invocation you suggested: https://github.com/Yelp/detect-secrets/blob/master/detect_secrets/core/baseline.py#L37 |
I closed it by mistake. |
Closing issue, as #188 has been merged. |
* Tighter GH detector * Fix tox and address PR comments * Address 3 of 4 PR comments * Remove machine tests * Comments addressed...can't figure out why one test is still failing * Fixed tests * Addressed last comment * Addressed optional comment.
* Tighter GH detector * Fix tox and address PR comments * Address 3 of 4 PR comments * Remove machine tests * Comments addressed...can't figure out why one test is still failing * Fixed tests * Addressed last comment * Addressed optional comment.
* Tighter GH detector * Fix tox and address PR comments * Address 3 of 4 PR comments * Remove machine tests * Comments addressed...can't figure out why one test is still failing * Fixed tests * Addressed last comment * Addressed optional comment.
Uh oh!
There was an error while loading. Please reload this page.
Hi, how can I scan multiple files?
I don't want to scan a whole folder I want to scan only a few specific files.
I want to achieve something like that:
detect-secrets scan test.js test.yaml
but right now when I run it I get:The text was updated successfully, but these errors were encountered: