Skip to content

Commit 52d0ee5

Browse files
authored
Update ngrok.go detector to handle 403s properly (#4216)
1 parent 4a480c1 commit 52d0ee5

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

pkg/detectors/ngrok/ngrok.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,8 @@ func verifyMatch(ctx context.Context, client *http.Client, token string) (bool,
9999
return true, nil
100100
case http.StatusUnauthorized:
101101
return false, nil
102+
case http.StatusForbidden:
103+
return false, nil
102104
case http.StatusBadRequest:
103105
bodyBytes, err := io.ReadAll(res.Body)
104106
if err != nil {

0 commit comments

Comments
 (0)