BishopFox / GitGot

Semi-automated, feedback-driven tool to rapidly search through troves of public data on GitHub for sensitive secrets.
GNU Lesser General Public License v3.0
1.43k stars 204 forks source link

not working #16

Closed Sim0x0 closed 4 years ago

Sim0x0 commented 4 years ago

hello ! can you help me fix this error ? >>>>>

Collecting Github Search API data... Traceback (most recent call last): File "./gitgot.py", line 490, in main() File "./gitgot.py", line 486, in main github_search(g, state) File "./gitgot.py", line 313, in github_search state.totalCount = repositories.totalCount File "/usr/local/lib/python3.7/dist-packages/github/PaginatedList.py", line 153, in totalCount headers=self.headers File "/usr/local/lib/python3.7/dist-packages/github/Requester.py", line 276, in requestJsonAndCheck return self.check(*self.requestJson(verb, url, parameters, headers, input, self.customConnection(url))) File "/usr/local/lib/python3.7/dist-packages/github/Requester.py", line 287, in check raise self.__createException(status, responseHeaders, output) github.GithubException.BadCredentialsException: 401 {'message': 'Bad credentials', 'documentation_url': 'https://developer.github.com/v3'}

the-bumble commented 4 years ago

Hey Sim0x0,

github.GithubException.BadCredentialsException: 401 {'message': 'Bad credentials', 'documentation_url': 'https://developer.github.com/v3'}

It looks like your GitHub API key is invalid. See the README.md for instructions on setting up a GitHub API key with GitGot. It can either be placed in the gitgot.py file or as an environment variable.

Happy hacking!

Jake