Skip to content

Commit

Permalink
Update action to use new aquasecurity GitHub org (#23)
Browse files Browse the repository at this point in the history
GitHub checks seem to have run out of macOS runners. All other checks passed and this issue is blocking people's workflows, so I am merging.
  • Loading branch information
nnichols authored Jul 12, 2021
1 parent 46e705e commit f048021
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions script.sh
Original file line number Diff line number Diff line change
Expand Up @@ -32,16 +32,16 @@ echo "::group::🐶 Installing reviewdog (${REVIEWDOG_VERSION}) ... https://gith
curl -sfL https://raw.githubusercontent.com/reviewdog/reviewdog/master/install.sh | sh -s -- -b "${REVIEWDOG_PATH}" "${REVIEWDOG_VERSION}" 2>&1
echo '::endgroup::'

echo "::group:: Installing tfsec (${INPUT_TFSEC_VERSION}) ... https://github.com/tfsec/tfsec"
echo "::group:: Installing tfsec (${INPUT_TFSEC_VERSION}) ... https://github.com/aquasecurity/tfsec"
test ! -d "${TFSEC_PATH}" && install -d "${TFSEC_PATH}"

if [[ "${INPUT_TFSEC_VERSION}" = "latest" ]]; then
tfsec_version=$(curl --silent https://api.github.com/repos/tfsec/tfsec/releases/latest | jq -r .tag_name)
tfsec_version=$(curl --silent https://api.github.com/repos/aquasecurity/tfsec/releases/latest | jq -r .tag_name)
else
tfsec_version=${INPUT_TFSEC_VERSION}
fi
binary="tfsec"
url="https://github.com/tfsec/tfsec/releases/download/${tfsec_version}/tfsec-${os}-${arch}"
url="https://github.com/aquasecurity/tfsec/releases/download/${tfsec_version}/tfsec-${os}-${arch}"
if [[ "${os}" = "windows" ]]; then
url+=".exe"
binary+=".exe"
Expand Down

0 comments on commit f048021

Please sign in to comment.