From d8eb0d64192ccb48f1a74c219c0be4f6d05f254d Mon Sep 17 00:00:00 2001 From: Pulkit Kathuria Date: Mon, 22 Jan 2024 11:01:35 +0900 Subject: [PATCH] fix fallace status code --- app/pkg/github.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/pkg/github.go b/app/pkg/github.go index d77b174..f61fe72 100644 --- a/app/pkg/github.go +++ b/app/pkg/github.go @@ -60,7 +60,7 @@ func (g *Github) VerifyGithubToken(token, orgName, repoName, commit string) erro g.log.Error(err) return err } - if resp.StatusCode != http.StatusCreated { + if resp.StatusCode < 200 || resp.StatusCode > 299 { err := fmt.Errorf("github auth response code is %d", resp.StatusCode) g.log.Error(err) return err