Skip to content
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 failed to scan Git: error preparing repo: unsupported Git URI: ."} #3945

Closed
tadwhitaker opened this issue Feb 26, 2025 · 2 comments
Labels

Comments

@tadwhitaker
Copy link

TruffleHog Version

trufflehog 3.88.13

Trace Output

Github Gist

Expected Behavior

I should be able to clone a repo locally, run Trufflehog against it and get back any secrets.

Actual Behavior

I've been using Trufflehog locally and it was working literally just fine this morning. I cloned a different repo, ran it and now I get this error on litterally every repo:

Steps to Reproduce

It's in the Gist.

Environment

  • OS: MacOS
  • Version 15.1.1 (24B91)
@rgmz
Copy link
Contributor

rgmz commented Feb 26, 2025

For local directories you have to use the file:// prefix. A bit awkward, perhaps it could default to that if the input isn't a url.

https://github.com/trufflesecurity/trufflehog?tab=readme-ov-file#9-scan-a-local-git-repo

@tadwhitaker
Copy link
Author

Oh gosh... you solved that. Thanks so much. Super simple.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

No branches or pull requests

2 participants