diff --git a/.ci/install-yq.sh b/.ci/install-yq.sh index 03dd85e66..794cbd726 100755 --- a/.ci/install-yq.sh +++ b/.ci/install-yq.sh @@ -56,12 +56,7 @@ function install_yq() { die "Please install curl" fi - # Workaround to get latest release from github (to not use github token). - # Get the redirection to latest release on github. - yq_latest_url=$(curl -Ls -o /dev/null -w %{url_effective} "https://${yq_pkg}/releases/latest") - # The redirected url should include the latest release version - # https://github.com/mikefarah/yq/releases/tag/ - yq_version=$(basename "${yq_latest_url}") + local yq_version=2.3.0 local yq_url="https://${yq_pkg}/releases/download/${yq_version}/yq_${goos}_${goarch}" curl -o "${yq_path}" -LSs ${yq_url}