Skip to content

Find, verify, and analyze leaked credentials

fix(github): response can be nil (#2583)

Richard Gomezfd7e7e6e296c
diff --git a/pkg/detectors/github/v1/github_old.go b/pkg/detectors/github/v1/github_old.go
index 8989bac47..a8ac717e6 100644
--- a/pkg/detectors/github/v1/github_old.go
+++ b/pkg/detectors/github/v1/github_old.go
@@ -124,6 +124,7 @@ func (s Scanner) VerifyGithub(ctx context.Context, client *http.Client, token st
res, err := client.Do(req)
if err != nil {
requestErr = err
+ continue
}
if res.StatusCode >= 200 && res.StatusCode < 300 {