Skip to content

Allow skipping git commit metadata scanning #3866

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

Open
namratasharma-rubrik opened this issue Feb 3, 2025 · 2 comments
Open

Allow skipping git commit metadata scanning #3866

namratasharma-rubrik opened this issue Feb 3, 2025 · 2 comments
Labels
enhancement pkg/sources PRs and Issues related to the `sources` package

Comments

@namratasharma-rubrik
Copy link

Description

A feature was added after #2683 that allows scanning for secrets in Commit messages. We have a use case where we want to skip this scan as we are adding some tracking params in our git commit messages that trufflehog is detecting as secrets.

Preferred Solution

Create a new flag like for eg --skip-metadata-scanning to skip scanning commit messages

References

#2683
#2713

@shahzadhaider1
Copy link
Contributor

Hey @namratasharma-rubrik,

Thank you for taking the time to open this issue, we really appreciate your contribution to the project!
We’ll take a look and get back to you as soon as we can. If we need any clarification, we’ll follow up here.

Thanks again for helping make this project better!

@kashifkhan0771 kashifkhan0771 added the pkg/sources PRs and Issues related to the `sources` package label May 30, 2025
@rosecodym
Copy link
Collaborator

Hello, I have a followup question: Are you able to share any more information about what, specifically, is being detected? In particular: Is TruffleHog reporting its findings as verified secrets, or as unverified? If it's the former, that sounds like a verification bug we should fix. If it's the latter, can you describe your workflow that requires the detection of unverified secrets? (I ask because that type of scan is not very common and we're curious to learn about use cases that require it when we encounter them.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement pkg/sources PRs and Issues related to the `sources` package
Projects
None yet
Development

No branches or pull requests

4 participants