-
Notifications
You must be signed in to change notification settings - Fork 71
Enable TruffleHog in pre-commit #439
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
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Comment @cursor review or bugbot run to trigger another review on this PR
|
@cursor review |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
✅ Bugbot reviewed your changes and found no bugs!
Comment @cursor review or bugbot run to trigger another review on this PR
|
Gentle ping @davidberenstein1957 Could you please review? |
| - id: trufflehog | ||
| name: TruffleHog Secrets Scanner | ||
| entry: trufflehog | ||
| language: golang |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why are we setting this to golang?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since trufflehog is a package written in golang, we have to specify the language for the hook to run.
| name: TruffleHog Secrets Scanner | ||
| entry: trufflehog | ||
| language: golang | ||
| types_or: [python, yaml, json, text] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Any reason for this specific config?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In types_or we define the types of program files for scanning using trufflehog. Do you think we need to define additional file types?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the PR :) I had 2 minor remarks.
|
Could you please review? cc: @minettekaum |
Description
This is a follow up PR which includes files like
.pyor.mdfor scanning and have not linted any files as advised. Currently, the pre-commit hook for trufflehog fails with a package not installed warning. Since it is a golang package, I have adjusted the configuration for it to work. It currently scanssrc,testsand.github/workflowsin order for the checks to be completed in a reasonable amount of time.Could you please review?
cc: @davidberenstein1957
Related Issue
Fixes #(issue number)
Type of Change
How Has This Been Tested?
Checklist
Additional Notes