Skip to content

Commit e3887b7

Browse files
committed
Update TFLINT version and hardcode checksum
1 parent 1a8e5b4 commit e3887b7

2 files changed

Lines changed: 7 additions & 9 deletions

File tree

tools/cloud-workstations/Dockerfile

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -38,15 +38,13 @@ RUN wget https://github.com/koalaman/shellcheck/releases/download/${SHELLCHECK_V
3838
rm -rf shellcheck-*
3939

4040
# --- Install TFLint Securely ---
41-
RUN curl -fsSLo /tmp/tflint_linux_amd64.zip \
42-
https://github.com/terraform-linters/tflint/releases/download/${TFLINT_VERSION}/tflint_linux_amd64.zip && \
43-
curl -fsSLo /tmp/checksums.txt \
44-
https://github.com/terraform-linters/tflint/releases/download/${TFLINT_VERSION}/checksums.txt && \
45-
cd /tmp && \
46-
grep "tflint_linux_amd64.zip" checksums.txt | sha256sum -c - && \
47-
unzip /tmp/tflint_linux_amd64.zip -d /usr/local/bin && \
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 && \
4846
chmod +x /usr/local/bin/tflint && \
49-
rm -f /tmp/tflint_linux_amd64.zip /tmp/checksums.txt
47+
rm -f /tmp/tflint_linux_amd64.zip
5048

5149
# --- Add HashiCorp Repo and Install Terraform/Packer ---
5250
RUN curl -fsSL https://apt.releases.hashicorp.com/gpg | gpg --dearmor -o /usr/share/keyrings/hashicorp-archive-keyring.gpg && \

tools/cloud-workstations/workstation-image.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ steps:
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
- '.'

0 commit comments

Comments
 (0)