eth0izzle / shhgit

Ah shhgit! Find secrets in your code. Secrets detection for your GitHub, GitLab and Bitbucket repositories.
MIT License
3.84k stars 481 forks source link

App hangs when more than 3 tokens are used #73

Open jaredxx1 opened 3 years ago

jaredxx1 commented 3 years ago

Hello,

Don't know if it's a bug or not but.. this is what happens:

Starting 3a742e725a6b_shhgit.www ... done
Recreating shhgit.app            ... done
Attaching to 3a742e725a6b_shhgit.www, shhgit.app

It hangs, not even the banner shows.

Any thoughts?

jaredxx1 commented 3 years ago

One more thing. It's adding file blob for urls:

`Actually: https://github.com/bozinoski777/cv_api/blob/master/f78a4a620531c9e64a93bbe738ad7dcc28922191/settings

Expected: https://github.com/bozinoski777/cv_api/blob/master/settings

{Url: "https://github.com/bozinoski777/settings.git", Matches: null, Signature: "Django configuration file", File: "/f78a4a620531c9e64a93bbe738ad7dcc28922191/cv_api/settings.py", Stars: 0, …}`

Just an example

BlackDiverX commented 3 years ago

Yes, problem with file blob for urls is exist. Please call how to fix it.

One more thing. It's adding file blob for urls:

`Actually: https://github.com/bozinoski777/cv_api/blob/master/f78a4a620531c9e64a93bbe738ad7dcc28922191/settings

Expected: https://github.com/bozinoski777/cv_api/blob/master/settings

{Url: "https://github.com/bozinoski777/settings.git", Matches: null, Signature: "Django configuration file", File: "/f78a4a620531c9e64a93bbe738ad7dcc28922191/cv_api/settings.py", Stars: 0, …}`

Just an example

marcelo321 commented 3 years ago

Does this still happen @jaredxx1? So we need to put 3 tokens max. But do we get rate-limited with only 3 tokens?

marcelo321 commented 3 years ago

I confirm shhgit completely breaks with just 3 github tokens... :((

Doesn't hang with 2 tokens.

eth0izzle commented 3 years ago

I've not looked in to this yet but it could be because it's exhausting your threads. Try running shhgit with --threads 30, for example.