File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -37,8 +37,14 @@ RUN wget https://github.com/koalaman/shellcheck/releases/download/${SHELLCHECK_V
3737 mv shellcheck-${SHELLCHECK_VER}/shellcheck /usr/local/bin/shellcheck && \
3838 rm -rf shellcheck-*
3939
40- # --- Install TFLint ---
41- RUN curl -s https://raw.githubusercontent.com/terraform-linters/tflint/master/install_linux.sh | bash
40+ # --- Install TFLint Securely ---
41+ RUN TFLINT_ZIP_HASH="c004ec45ade3caf87cd4089feb1d2af9f7df57b13140a36df8a63c0a8cc69f14" && \
42+ curl -fsSLo /tmp/tflint_linux_amd64.zip \
43+ https://github.com/terraform-linters/tflint/releases/download/${TFLINT_VERSION:-v0.62.1}/tflint_linux_amd64.zip && \
44+ echo "${TFLINT_ZIP_HASH} /tmp/tflint_linux_amd64.zip" | sha256sum -c - && \
45+ unzip -o /tmp/tflint_linux_amd64.zip -d /usr/local/bin && \
46+ chmod +x /usr/local/bin/tflint && \
47+ rm -f /tmp/tflint_linux_amd64.zip
4248
4349# --- Add HashiCorp Repo and Install Terraform/Packer ---
4450RUN curl -fsSL https://apt.releases.hashicorp.com/gpg | gpg --dearmor -o /usr/share/keyrings/hashicorp-archive-keyring.gpg && \
Original file line number Diff line number Diff line change 2424 - ' --cache-from'
2525 - ' ${_LOCATION}-docker.pkg.dev/${PROJECT_ID}/${_REPO}/hpc-toolkit-workstation:latest'
2626 - ' --build-arg'
27- - ' TFLINT_VERSION=v0.58 .1'
27+ - ' TFLINT_VERSION=v0.62 .1'
2828 - ' -f'
2929 - ' tools/cloud-workstations/Dockerfile'
3030 - ' .'
You can’t perform that action at this time.
0 commit comments