Skip to content

Commit 01cce4f

Browse files
authored
Merge pull request #5756 from viniciusdc/5755-kustomize-install
chore: add bad-credentials exception for install script
2 parents 54cbcdc + 3872752 commit 01cce4f

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

hack/install_kustomize.sh

+4
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,10 @@ else
141141
releases=$(curl -s "$release_url" --header "Authorization: Bearer ${GITHUB_TOKEN}")
142142
fi
143143

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

0 commit comments

Comments
 (0)