Update ngrok.go detector to handle 403s properly (#4216)
Lint / golangci-lint (push) Waiting to run
Lint / semgrep (push) Waiting to run
Release / Release (push) Waiting to run
Scan for secrets / test (push) Waiting to run
Test / test (push) Waiting to run
Test / test-community (push) Waiting to run

This commit is contained in:
thiggy1342
2025-06-09 15:25:40 -05:00
committed by GitHub
parent 4a480c102b
commit 52d0ee5f54
+2
View File
@@ -99,6 +99,8 @@ func verifyMatch(ctx context.Context, client *http.Client, token string) (bool,
return true, nil
case http.StatusUnauthorized:
return false, nil
case http.StatusForbidden:
return false, nil
case http.StatusBadRequest:
bodyBytes, err := io.ReadAll(res.Body)
if err != nil {