Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Optionally disable GPG check in terraform feature #1247

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix for missing sha256sums
williamoconnorme committed Jan 20, 2025

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
commit a0b0abe31cac96e12c99bac6b9e435e1685b4303
5 changes: 5 additions & 0 deletions src/terraform/install.sh
Original file line number Diff line number Diff line change
@@ -379,6 +379,7 @@ if [ "${TERRAFORM_SHA256}" != "dev-mode" ]; then
gpg --verify terraform_SHA256SUMS.sig terraform_SHA256SUMS
else
echo "Skipping GPG check for Terraform."
curl -sSL -o terraform_SHA256SUMS https://releases.hashicorp.com/terraform/${TERRAFORM_VERSION}/terraform_${TERRAFORM_VERSION}_SHA256SUMS
fi
else
echo "${TERRAFORM_SHA256} *${terraform_filename}" > terraform_SHA256SUMS
@@ -431,6 +432,8 @@ if [ "${TFLINT_VERSION}" != "none" ]; then
fi
else
echo "Skipping GPG check for TFLint."
curl -sSL -o tflint_checksums.txt https://github.com/terraform-linters/tflint/releases/download/v${TFLINT_VERSION}/checksums.txt
sha256sum --ignore-missing -c tflint_checksums.txt
fi
fi
fi
@@ -480,6 +483,8 @@ if [ "${INSTALL_SENTINEL}" = "true" ]; then
shasum -a 256 --ignore-missing -c sentinel_checksums.txt
else
echo "Skipping GPG check for Sentinel."
curl -sSL -o sentinel_checksums.txt ${sentinel_releases_url}/${SENTINEL_VERSION}/sentinel_${SENTINEL_VERSION}_SHA256SUMS
sha256sum --ignore-missing -c sentinel_checksums.txt
fi
else
echo "${SENTINEL_SHA256} *${SENTINEL_FILENAME}" >sentinel_checksums.txt