diff --git a/script.sh b/script.sh index a8c3a66..06d805b 100755 --- a/script.sh +++ b/script.sh @@ -7,8 +7,10 @@ TEMP_PATH="$(mktemp -d)" PATH="${TEMP_PATH}:$PATH" export REVIEWDOG_GITHUB_API_TOKEN="${INPUT_GITHUB_TOKEN}" +STATICCHECK_VERSION="2024.1.1" echo '::group:: Installing staticcheck ... https://staticcheck.io' -curl -sfL "https://github.com/dominikh/go-tools/releases/latest/download/staticcheck_linux_amd64.tar.gz" | tar -xvz -C "${TEMP_PATH}" --strip-components=1 +curl -sfL "https://github.com/dominikh/go-tools/releases/download/${STATICCHECK_VERSION}/staticcheck_linux_amd64.tar.gz" | tar -xvz -C "${TEMP_PATH}" --strip-components=1 +staticcheck --version echo '::endgroup::'