diff --git a/.github/actions/dependencies/install-helm/setup-helm.sh b/.github/actions/dependencies/install-helm/setup-helm.sh index ff57cf7..b0502e0 100755 --- a/.github/actions/dependencies/install-helm/setup-helm.sh +++ b/.github/actions/dependencies/install-helm/setup-helm.sh @@ -13,7 +13,7 @@ function install_helm3 { fi export HELM_INSTALL_DIR=/usr/bin - curl https://raw.githubusercontent.com/helm/helm/06468084e85c244c712834933d25ea232a4c2093/scripts/get > get_helm.sh # v4.2.0 + curl -fL --retry 3 https://raw.githubusercontent.com/helm/helm/06468084e85c244c712834933d25ea232a4c2093/scripts/get -o get_helm.sh # v4.2.0 # we need to modify the script with a different path because on the Azure pipelines the HELM_INSTALL_DIR env var is not honoured sed -i 's#/usr/local/bin#/usr/bin#g' get_helm.sh chmod 700 get_helm.sh diff --git a/.github/actions/dependencies/install-shellcheck/setup_shellcheck.sh b/.github/actions/dependencies/install-shellcheck/setup_shellcheck.sh index f99bcb6..fa03127 100755 --- a/.github/actions/dependencies/install-shellcheck/setup_shellcheck.sh +++ b/.github/actions/dependencies/install-shellcheck/setup_shellcheck.sh @@ -10,8 +10,9 @@ if [ "$ARCH" == "arm64" ]; then ARCH="aarch64" fi -wget https://github.com/koalaman/shellcheck/releases/download/v$VERSION/shellcheck-v$VERSION.linux.$ARCH.tar.xz -O shellcheck.tar.xz +wget --https-only --tries=3 --output-document=shellcheck.tar.xz "https://github.com/koalaman/shellcheck/releases/download/v${VERSION}/shellcheck-v${VERSION}.linux.${ARCH}.tar.xz" tar xf shellcheck.tar.xz -C /tmp --strip-components 1 rm -f shellcheck.tar.xz chmod +x /tmp/shellcheck sudo mv /tmp/shellcheck /usr/bin +shellcheck --version diff --git a/.github/actions/dependencies/install-syft/install_syft.sh b/.github/actions/dependencies/install-syft/install_syft.sh index 4a186fc..7cff95c 100755 --- a/.github/actions/dependencies/install-syft/install_syft.sh +++ b/.github/actions/dependencies/install-syft/install_syft.sh @@ -6,8 +6,9 @@ if [ -z "$ARCH" ]; then ARCH="amd64" fi -wget https://github.com/anchore/syft/releases/download/v${VERSION}/syft_${VERSION}_linux_${ARCH}.tar.gz -O syft.tar.gz +wget --https-only --tries=3 --output-document=syft.tar.gz "https://github.com/anchore/syft/releases/download/v${VERSION}/syft_${VERSION}_linux_${ARCH}.tar.gz" tar xf syft.tar.gz -C /tmp rm -f syft.tar.gz chmod +x /tmp/syft sudo mv /tmp/syft /usr/bin +syft version diff --git a/.github/actions/dependencies/install-yq/install_yq.sh b/.github/actions/dependencies/install-yq/install_yq.sh index 068c512..1f6ecec 100755 --- a/.github/actions/dependencies/install-yq/install_yq.sh +++ b/.github/actions/dependencies/install-yq/install_yq.sh @@ -6,5 +6,7 @@ if [ -z "$ARCH" ]; then ARCH="amd64" fi -curl -L https://github.com/mikefarah/yq/releases/download/${VERSION}/yq_linux_${ARCH} > yq && chmod +x yq +curl -fL --retry 3 "https://github.com/mikefarah/yq/releases/download/${VERSION}/yq_linux_${ARCH}" -o yq +chmod +x yq sudo mv yq /usr/bin/ +yq --version diff --git a/.github/actions/dependencies/setup-kind/setup-kind.sh b/.github/actions/dependencies/setup-kind/setup-kind.sh index e6e9d3e..dc32cfa 100755 --- a/.github/actions/dependencies/setup-kind/setup-kind.sh +++ b/.github/actions/dependencies/setup-kind/setup-kind.sh @@ -43,10 +43,12 @@ function is_podman() { function install_kubectl { if [ "${TEST_KUBECTL_VERSION:-latest}" = "latest" ]; then - TEST_KUBECTL_VERSION=$(curl -L -s https://dl.k8s.io/release/stable.txt) + TEST_KUBECTL_VERSION=$(curl -fsSL --retry 3 https://dl.k8s.io/release/stable.txt) fi - curl -Lo kubectl https://dl.k8s.io/release/${TEST_KUBECTL_VERSION}/bin/linux/${ARCH}/kubectl && chmod +x kubectl + curl -fL --retry 3 -o kubectl "https://dl.k8s.io/release/${TEST_KUBECTL_VERSION}/bin/linux/${ARCH}/kubectl" + chmod +x kubectl sudo mv kubectl /usr/local/bin + kubectl version --client if is_podman; then sudo ln -sf /usr/local/bin/kubectl /usr/bin/kubectl @@ -66,10 +68,12 @@ function install_kubernetes_provisioner { KIND_URL=https://github.com/kubernetes-sigs/kind/releases/download/${KIND_VERSION}/kind-linux-${ARCH} - curl -Lo kind ${KIND_URL} && chmod +x kind + curl -fL --retry 3 -o kind "${KIND_URL}" + chmod +x kind # Move the binary to a globally accessible location sudo mv kind /usr/local/bin/kind + kind version sudo ln -sf /usr/local/bin/kind /usr/bin/kind if command -v kind >/dev/null 2>&1; then diff --git a/.github/actions/dependencies/setup-minikube/setup-minikube.sh b/.github/actions/dependencies/setup-minikube/setup-minikube.sh index aa492bf..3c40ef0 100755 --- a/.github/actions/dependencies/setup-minikube/setup-minikube.sh +++ b/.github/actions/dependencies/setup-minikube/setup-minikube.sh @@ -23,10 +23,12 @@ fi function install_kubectl { if [ "${TEST_KUBECTL_VERSION:-latest}" = "latest" ]; then - TEST_KUBECTL_VERSION=$(curl -L -s https://dl.k8s.io/release/stable.txt) + TEST_KUBECTL_VERSION=$(curl -fsSL --retry 3 https://dl.k8s.io/release/stable.txt) fi - curl -Lo kubectl https://dl.k8s.io/release/${TEST_KUBECTL_VERSION}/bin/linux/${ARCH}/kubectl && chmod +x kubectl + curl -fL --retry 3 -o kubectl "https://dl.k8s.io/release/${TEST_KUBECTL_VERSION}/bin/linux/${ARCH}/kubectl" + chmod +x kubectl sudo cp kubectl /usr/local/bin + kubectl version --client } function label_node { @@ -51,8 +53,10 @@ if [ "$TEST_CLUSTER" = "minikube" ]; then KUBE_VERSION="v${KUBE_VERSION#v}" fi - curl -Lo minikube ${TEST_MINIKUBE_URL} && chmod +x minikube + curl -fL --retry 3 -o minikube "${TEST_MINIKUBE_URL}" + chmod +x minikube sudo cp minikube /usr/local/bin + minikube version export MINIKUBE_WANTUPDATENOTIFICATION=false export MINIKUBE_WANTREPORTERRORPROMPT=false