Skip to content

Commit

Permalink
Merge pull request #5756 from viniciusdc/5755-kustomize-install
Browse files Browse the repository at this point in the history
chore: add bad-credentials exception for install script
  • Loading branch information
k8s-ci-robot authored Sep 27, 2024
2 parents 54cbcdc + 3872752 commit 01cce4f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions hack/install_kustomize.sh
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,10 @@ else
releases=$(curl -s "$release_url" --header "Authorization: Bearer ${GITHUB_TOKEN}")
fi

if [[ $releases == *"Bad credentials"* ]]; then
echo "Authentication failed: Invalid GITHUB_TOKEN. Please check or remove your token."
exit 1
fi
if [[ $releases == *"API rate limit exceeded"* ]]; then
echo "Github rate-limiter failed the request. Either authenticate or wait a couple of minutes."
exit 1
Expand Down

0 comments on commit 01cce4f

Please sign in to comment.