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.45k stars 207 forks source link

Fixed GithubException API handling to prevent crashing #25

Closed jhalon closed 7 months ago

jhalon commented 2 years ago

Card

GithubException Causes File Crash

Details

Adding a small fix to properly handle the GithubException for the API errors by formatting the print statement and returning False to skip the specific commit and continue normal operations. Without this, the program crashes when GitHub returns something like a 404 Error when the commit is not found.