From 5b00067b7e080755e56745b5ec709a86ebeb41d6 Mon Sep 17 00:00:00 2001 From: Michael Rosenfeld Date: Fri, 19 Jun 2026 09:07:22 -0400 Subject: [PATCH] fix(tflint-installer): scope regex to avoid release json overmatches --- tools/install/tflint.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/install/tflint.sh b/tools/install/tflint.sh index ac2556b81..b15eaab8b 100755 --- a/tools/install/tflint.sh +++ b/tools/install/tflint.sh @@ -9,8 +9,8 @@ readonly SCRIPT_DIR # GH_ORG="terraform-linters" -GH_RELEASE_REGEX_SPECIFIC_VERSION="https://.+?/v${VERSION}/${TOOL}_${TARGETOS}_${TARGETARCH}.zip" -GH_RELEASE_REGEX_LATEST="https://.+?_${TARGETOS}_${TARGETARCH}.zip" +GH_RELEASE_REGEX_SPECIFIC_VERSION="https://[^\"]*/v${VERSION}/${TOOL}_${TARGETOS}_${TARGETARCH}.zip" +GH_RELEASE_REGEX_LATEST="https://[^\"]*_${TARGETOS}_${TARGETARCH}.zip" DISTRIBUTED_AS="zip" common::install_from_gh_release "$GH_ORG" "$DISTRIBUTED_AS" \