tillson / git-hound

Reconnaissance tool for GitHub code search. Scans for exposed API keys across all of GitHub, not just known repos and orgs.
MIT License
1.19k stars 184 forks source link

"config.yml was not found" error #32

Closed wifiuk closed 2 years ago

wifiuk commented 4 years ago

what am I missing here?

Downloaded the latest binary.

image

tillson commented 4 years ago

A few people have reported this issue... I'm unable to reproduce it as a bug currently.

Does supplying the full config path with--config-file fix it? If not, what operating system are you on? I'll run a VM to see if that lets me replicate.

wifiuk commented 4 years ago

Happens on Linux and windows

wifiuk commented 4 years ago

Adding the path doesn't help either

GeneralEG commented 4 years ago

Same here for me

wifiuk commented 3 years ago

still have the same issue, totally different Linux system, using the lastest release from github.

alexandrevvo commented 3 years ago

A few people have reported this issue... I'm unable to reproduce it as a bug currently.

Does supplying the full config path with--config-file fix it? If not, what operating system are you on? I'll run a VM to see if that lets me replicate.

Got it.. You must put login and password between quotes "" in the config.yml!

ashhadali10 commented 3 years ago

not working same error

elxandre commented 3 years ago

@tillson Same error. You previously mentioned a YT video. Could you kindly post it here for us noobs to follow?

0xCC00FFEE commented 3 years ago

Maybe we can simplify the process of loading the configuration file to only look it up at:

If possible can anyone still facing this issue try the following diff in cmd/root.go and see if it solves the problem?

116,118c117,118
<   viper.SetConfigName("config")
<   viper.AddConfigPath("$HOME/.githound")
<   viper.AddConfigPath(".")
---
>   viper.SetConfigName("config.yml")
>   viper.AddConfigPath("./")

Note: Changes are made based on the latest stable release v1.3

tillson commented 3 years ago

SOLUTION I think this may be a case of a bad error message. @alexandrevvo seemed to figure out that the problem was that you need to put your username and password in quotation marks (see the updated https://github.com/tillson/git-hound/blob/master/config.example.yml). If anyone is still having this issue even after doing quotation marks, I'd be interested to hear about it!

sarahhumok7 commented 2 years ago

I'm having the same problem i using Windows 32 bit

sarahhumok7 commented 2 years ago

gttt666777ooi8 I'm having this problem: No config file detected I'm using Windows, I need help