-
-
Notifications
You must be signed in to change notification settings - Fork 238
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
trufflehog linter raises spurious false positives #2834
Comments
Indeed that's strange... For the moment I didn't find a way to ignore false positives in trufflehog, but I'll check again ! Meanwhile you can just disable errors by adding DISABLE_ERRORS_LINTERS:
- REPOSITORY_TRUFFLEHOG |
Not sure if this is useful (at least it's not a 👍). Got the same except my raw result line is different. Here is a public repo run if it helps https://github.com/iggy/govern/actions/runs/5663001741/job/15343965208?pr=121 |
This is my workaround:
|
I did this after I looked at your release notes, and saw the trufflehog was new in 7.2. The issue is of course that it doesn't happen when you run trufflehog with no additional args manually after installing it on your local machine; so developers could never have remediated this. If you look at the trace logging coming out from something like
I'm personally not entirely convinced that trufflehog is doing anything useful in the context of
If I'm running megalinter on pull requests then I should be running
That's a different workaround to the the Making that change would make the default behaviour out-of-the-box more friendly, but leave you in a state of having to detect if someone has included which leaves us with 2 potential workarounds (horses for courses here, but some additional documentation in megalinter is probably useful, since all of these are sane changes that any user might want to make).
|
Thanks to all of you for your analysis, I'll publish a patch with |
Fix released in https://github.com/oxsecurity/megalinter/releases/tag/v7.2.1 :) |
* Clean docker build cache to avoid no space left on device during Build Dev job * [automation] Auto-update linters version, help and documentation * [MegaLinter] Apply linters fixes * trvy * Fix jsx tests * Free disk space (more !) * Do not remove docker images to free space * Stealth: snippetLanguage + snippetExtension * snippetLang description * Call trufflehog with `--only-verified` to avoid false positives in .git/config Fixes #2834 * Fix error message for repository error * Arrange messages * icons until kubescape * iconnnns until devskim * until grype * All security linters icons :) * Add links in descriptors * Redis reporter: Return URL of linter icons when available, in property `iconPngUrl` --------- Co-authored-by: nvuillam <nicolas.vuillamy@ox.security> Co-authored-by: nvuillam <nvuillam@users.noreply.github.com>
…it/config (oxsecurity#2838) Fixes oxsecurity#2834 Co-authored-by: nvuillam <nicolas.vuillamy@ox.security>
…curity#2856) * Clean docker build cache to avoid no space left on device during Build Dev job * [automation] Auto-update linters version, help and documentation * [MegaLinter] Apply linters fixes * trvy * Fix jsx tests * Free disk space (more !) * Do not remove docker images to free space * Stealth: snippetLanguage + snippetExtension * snippetLang description * Call trufflehog with `--only-verified` to avoid false positives in .git/config Fixes oxsecurity#2834 * Fix error message for repository error * Arrange messages * icons until kubescape * iconnnns until devskim * until grype * All security linters icons :) * Add links in descriptors * Redis reporter: Return URL of linter icons when available, in property `iconPngUrl` --------- Co-authored-by: nvuillam <nicolas.vuillamy@ox.security> Co-authored-by: nvuillam <nvuillam@users.noreply.github.com>
Describe the bug
New 'trufflehog' linter causes issues out of the box since it detects potential secrets inside the ".git" directory if you run megalinter as a github action.
To Reproduce
Steps to reproduce the behavior:
pull_request: write
andcontents:write
permissionsYou will intermittently get things like
The text was updated successfully, but these errors were encountered: