trufflehog icon indicating copy to clipboard operation
trufflehog copied to clipboard

Unable to scan git repo with trufflehog

Open venkatn087 opened this issue 2 years ago • 0 comments

Hi Team,

I have 2 queries here. Query 1: I have installed trufflehog in RHEL7 with go lang as per below steps but when i check for trufflehog version saying "trufflehog is not found". git version 2.18.0 go version go1.18.3 linux/amd64 mkdir test cd test git init git clone https://github.com/trufflesecurity/trufflehog.git cd trufflehog go install from the same directory,trufflehog git –help Error –trufflehog command not found. Could you please let mow what other steps do i need to follow if i want to install truffehog with Go lang.

Query no 2: I have installed trufflehog with source as mentioned below. git version 2.18.0 go version go1.18.3 linux/amd64 sudo wget https://github.com/trufflesecurity/trufflehog/releases/download/v3.6.7/trufflehog_3.6.7_linux_amd64.tar.gz tar -xvf trufflehog_3.6.7_linux_amd64.tar.gz sudo mv trufflehog /usr/bin/ which trufflehog [brsubbareddy123@apache ~]$ trufflehog git --help usage: TruffleHog git []

Now when i scan the gitrepo with below command getting the error. trufflehog1

[brsubbareddy123@trufflehog ~]$ trufflehog git https://github.com/facebook/flipper.git FATA[0000] error occured with trufflehog updater 🐷 error="cannot move binary (exit status 1)" [brsubbareddy123@trufflehog ~]$ trufflehog git --regex --entropy=False https://github.com/facebook/flipper.git trufflehog: error: unexpected https://github.com/facebook/flipper.git, try --help [brsubbareddy123@trufflehog ~]$

venkatn087 avatar Jul 12 '22 19:07 venkatn087

The updater encountered a permission issue while trying to replace the binary. You can run with --no-update to get around that.

dustin-decker avatar Sep 07 '22 03:09 dustin-decker