Skip to content

Commit

Permalink
Fix bearer token (#67)
Browse files Browse the repository at this point in the history
  • Loading branch information
harrywm committed Mar 24, 2023
1 parent aa45c85 commit 477d2ce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion script.sh
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ echo '::group::Preparing'

if [[ -z "${INPUT_TFLINT_VERSION}" ]] || [[ "${INPUT_TFLINT_VERSION}" == "latest" ]]; then
echo "Looking up the latest tflint version ..."
tflint_version=$(curl --silent --show-error --fail --location "https://api.github.com/repos/terraform-linters/tflint/releases/latest" | grep '"tag_name":' | sed -E 's/.*"([^"]+)".*/\1/')
tflint_version=$(curl -H "Authorization: Bearer ${INPUT_GITHUB_TOKEN}" --silent --show-error --fail --location "https://api.github.com/repos/terraform-linters/tflint/releases/latest" | grep '"tag_name":' | sed -E 's/.*"([^"]+)".*/\1/')
else
tflint_version=${INPUT_TFLINT_VERSION}
fi
Expand Down

0 comments on commit 477d2ce

Please sign in to comment.