use api token
This commit is contained in:
@@ -46,7 +46,7 @@ command_exists curl
|
||||
command_exists tar
|
||||
|
||||
if [ "x${KUBEBUILDER_VERSION}" = "x" ] ; then
|
||||
KUBEBUILDER_VERSION=$(curl -L -s https://api.github.com/repos/kubernetes-sigs/kubebuilder/releases/latest | \
|
||||
KUBEBUILDER_VERSION=$(curl -L -s https://api.github.com/repos/kubernetes-sigs/kubebuilder/releases/latest?access_token=$TOKEN | \
|
||||
grep tag_name | sed "s/ *\"tag_name\": *\"\\(.*\\)\",*/\\1/")
|
||||
if [ -z "$KUBEBUILDER_VERSION" ]; then
|
||||
echo "\nUnable to fetch the latest version tag. This may be due to network access problem"
|
||||
|
||||
Reference in New Issue
Block a user