From 7ccf75ba73ba300625dae411b50f31b28c1d9572 Mon Sep 17 00:00:00 2001 From: Daniel Sanabria Date: Fri, 25 Mar 2022 11:05:37 +0000 Subject: [PATCH] Fixing url typo breaking tfsec downloads --- entrypoint.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/entrypoint.sh b/entrypoint.sh index 7ffb41e..48d5119 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -11,8 +11,8 @@ if [ "$INPUT_TFSEC_VERSION" != "latest" ]; then TFSEC_VERSION="tags/${INPUT_TFSEC_VERSION}" fi -wget -O - -q "$(wget -q https://api.github.com/repos/aquasecurity/tfsec/releases${TFSEC_VERSION} -O - | grep -m 1 -o -E "https://.+?tfsec-linux-amd64" | head -n1)" > tfsec-linux-amd64 -wget -O - -q "$(wget -q https://api.github.com/repos/aquasecurity/tfsec/releases${TFSEC_VERSION} -O - | grep -m 1 -o -E "https://.+?tfsec_checksums.txt" | head -n1)" > tfsec.checksums +wget -O - -q "$(wget -q https://api.github.com/repos/aquasecurity/tfsec/releases/${TFSEC_VERSION} -O - | grep -m 1 -o -E "https://.+?tfsec-linux-amd64" | head -n1)" > tfsec-linux-amd64 +wget -O - -q "$(wget -q https://api.github.com/repos/aquasecurity/tfsec/releases/${TFSEC_VERSION} -O - | grep -m 1 -o -E "https://.+?tfsec_checksums.txt" | head -n1)" > tfsec.checksums grep tfsec-linux-amd64 tfsec.checksums > tfsec-linux-amd64.checksum sha256sum -c tfsec-linux-amd64.checksum