Skip to content

Commit

Permalink
Merge pull request aquasecurity#2 from niraj8/patch-1
Browse files Browse the repository at this point in the history
Fix version selection
  • Loading branch information
Owen Rumney authored Feb 10, 2022
2 parents a73ebc4 + 2c7b1f1 commit 3b31c7b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ set -x

TFSEC_VERSION="latest"
if [ "$INPUT_VERSION" != "latest" ]; then
TFSEC_VERSION="tags/${INPUT_TFSEC_VERSION}"
TFSEC_VERSION="tags/${INPUT_VERSION}"
fi

wget -O - -q "$(wget -q https://api.github.com/repos/aquasecurity/tfsec/releases/${TFSEC_VERSION} -O - | grep -o -E "https://.+?tfsec-linux-amd64" | head -n1)" > tfsec
Expand Down

0 comments on commit 3b31c7b

Please sign in to comment.