-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Gist Scanning Errors #2640
Comments
This is caused by two faulty assumptions:
An obvious hot-fix would be to check whether the host is "gist.github.com", similar to what the existing code does elsewhere (prior code to #2379). However, this is a bad long-term solution as it won't work on GitHub Enterprise Server. |
Would it be reasonable to add a CLI flag just for gists? |
I think they are different enough that it would make sense. There's a lot of awkward code around mingling repositories and gists. |
|
TruffleHog Version
trufflehog 3.71.1
Trace Output
Trace back
Expected Behavior
Gists should be scanned just like any other repository on GitHub.
Actual Behavior
Depending on the Gist URL structure, one of two different errors spits out:
URLs with the username (https://gist.github.com/raccoons-bot/627e15a45a596068ce8bfef3fd05ccdb.git)
URLs without the username (https://gist.github.com/274463.git)
Steps to Reproduce
Run the following commands:
trufflehog github --repo https://gist.github.com/274463.git
trufflehog github --repo https://gist.github.com/raccoons-bot/627e15a45a596068ce8bfef3fd05ccdb.git
Environment
Additional Context
I believe this was introduced in PR #2379 .
The text was updated successfully, but these errors were encountered: