trufflehog
trufflehog copied to clipboard
Error msg: could not scan repo
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
TruffleHog Version
trufflehog 3.18.0
Trace Output
{"level":"debug","msg":"running version 3.18.0","time":"2022-12-08T10:12:22Z"} {"level":"debug","msg":"running version 3.18.0","time":"2022-12-08T10:12:22Z"} {"level":"debug","msg":"running with up to 1 workers","time":"2022-12-08T10:12:22Z"} {"level":"debug","msg":"loaded 2 decoders","time":"2022-12-08T10:12:22Z"} {"level":"debug","msg":"loaded 731 detectors total, 731 with verification enabled. 0 with verification disabled","time":"2022-12-08T10:12:22Z"} {"error":"unable to resolve base ref: object not found","level":"fatal","msg":"could not scan repo","time":"2022-12-08T10:12:25Z"}
Expected Behavior
Successfully scan the selected repo for secrets from a specific commit using the since_commit flag.
Actual Behavior
Received a could not scan repo error.
Steps to Reproduce
Error only occurs on specific repos - not sure what is causing this.
- Verify that the commit passed to the
since_commitflag exists on the specified repo - Run the following command:
trufflehog git <repo.url> --json --since_commit=<commit> - See error
Can provide specific URLs and commits I'm seeing this issue on to the Assignee.
Environment
- OS: Ventura 13.0
- Hardware: Macbook Pro M2
References
https://pullanswer.com/questions/trufflehog-git-based-scanning-in-git-worktrees-fails