reviewdog / action-tfsec

Run tfsec with reviewdog on pull requests to enforce security best practices
MIT License
72 stars 24 forks source link

curl breaks after github org name change of tfsec #22

Closed yashmurty closed 3 years ago

yashmurty commented 3 years ago

curl breaks after github org name change of tfsec.

##[group*** Installing tfsec (latest) ... https://github.com/tfsec/tfsec
curl: (22) The requested URL returned error: 404 

Old: https://github.com/tfsec/tfsec New: https://github.com/aquasecurity/tfsec

The relevant code: https://github.com/reviewdog/action-tfsec/blob/master/script.sh#L39

echo "::group:: Installing tfsec (${INPUT_TFSEC_VERSION}) ... https://github.com/tfsec/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)
Vlaaaaaaad commented 3 years ago

🤦 wasn't GitHub supposed to support redirects for repo moves?

Waiting for the checks to pass on the PR and I'll merge and release!

Vlaaaaaaad commented 3 years ago

v1.10.0 was released with the PR fixing this 🎉