trufflehog icon indicating copy to clipboard operation
trufflehog copied to clipboard

Add max-depth limit to GitHub subcommand

Open dwilliamsstc opened this issue 2 years ago • 2 comments

Community Note

  • Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
  • Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for issue followers and do not help prioritize the request
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment

Description

Ability to limit the depth of the commit history being scanned for GitHub users We need the ability to set a --max-depth= limit to GitHub sub command.

Problem to be Addressed

It is very noisy for large GitHub enterprises to detect new issues due to the inability to ignore historical commit history that one has already remediated. Results have to be saved into a spreadsheet or database and then diff'd to see what has changed.

Description of the Preferred Solution

The ability to set a --max-depth= limit to GitHub sub command. This would be very beneficial when attempting to scan a GitHub enterprise repositories as a group.

Additional Context

References

  • #0000

dwilliamsstc avatar Dec 27 '22 21:12 dwilliamsstc

Yes please, would be great to specify --depth=1 which is passed to the git clone command. For the more continuous scans which don't need to go through the entire commit history, just the current files.

CameronLonsdale avatar Jul 11 '23 02:07 CameronLonsdale

would love to have this as well

hoernrob avatar Feb 08 '24 10:02 hoernrob