From d7445ec53b39ad4f113a8f182fb12e33a2d6f766 Mon Sep 17 00:00:00 2001 From: Bastian Doetsch Date: Thu, 25 May 2023 13:05:09 +0200 Subject: [PATCH] chore: add retry-all-errors curl parameter (#95) (#96) Co-authored-by: Brian Gomes Bascoy <338659+pera@users.noreply.github.com> --- src/commands/install.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/commands/install.yml b/src/commands/install.yml index 571b224..059d412 100644 --- a/src/commands/install.yml +++ b/src/commands/install.yml @@ -50,8 +50,8 @@ steps: if [[ ! -x "/tmp/snyk" ]]; then SNYK_CLI_VERSION=$(cat "/tmp/.snyk-version") echo "Downloading Snyk CLI version ${SNYK_CLI_VERSION}" - curl -sO --retry 6 https://static.snyk.io/cli/v${SNYK_CLI_VERSION}/snyk-<> - curl -sO --retry 6 https://static.snyk.io/cli/v${SNYK_CLI_VERSION}/snyk-<>.sha256 + curl -sO --retry 6 --retry-all-errors https://static.snyk.io/cli/v${SNYK_CLI_VERSION}/snyk-<> + curl -sO --retry 6 --retry-all-errors https://static.snyk.io/cli/v${SNYK_CLI_VERSION}/snyk-<>.sha256 sha256sum -c snyk-<>.sha256 sudo mv snyk-<> /tmp/snyk sudo chmod +x /tmp/snyk