Skip to content

Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.

Skip update check if github returns non-200

kimcore6eb81802c328
diff --git a/cli/packages/util/check-for-update.go b/cli/packages/util/check-for-update.go
index bf66f87e46..9f9daa332b 100644
--- a/cli/packages/util/check-for-update.go
+++ b/cli/packages/util/check-for-update.go
@@ -8,7 +8,7 @@ import (
)
func CheckForUpdate() {
- latestVersion, err := getLatestTag("infisical", "infisical")
+ latestVersion, err := getLatestTag("Infisical", "infisical")
if err != nil {
// do nothing and continue
return
@@ -24,6 +24,9 @@ func getLatestTag(repoOwner string, repoName string) (string, error) {
if err != nil {
return "", err
}
+ if resp.StatusCode != 200 {
+ return "", fmt.Sprintf("GitHub API returned status code %d", resp.StatusCode)
+ }
defer resp.Body.Close()