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

Allow adhoc non-git file scanning #18

Merged
merged 2 commits into from
Apr 17, 2018

Conversation

domanchi
Copy link
Contributor

Most of the changes in this CR is to support better testing. The real change is just adding a small conditional in detect_secrets/core/baseline.py to support this feature.

The idea is as follows: if I want to run this scan on an arbitrary file, that I know has secrets, and it doesn't catch anything, that's a very strange issue. And the reason behind that is because the file isn't tracked by git.

Perhaps in the future, we can add some sort of "files scanned" metric. However, for now, this should suffice.

@domanchi domanchi requested a review from KevinHock April 13, 2018 15:54
Copy link
Collaborator

@KevinHock KevinHock left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@domanchi domanchi merged commit 8502b48 into master Apr 17, 2018
@domanchi domanchi deleted the allow-non-git-tracked-file-scanning branch April 17, 2018 14:51
jimmyhlee94 pushed a commit to jimmyhlee94/detect-secrets that referenced this pull request Aug 19, 2021
Add make command back into .travis.yml
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 this pull request may close these issues.

2 participants