File tree Expand file tree Collapse file tree
templates/Resource_Manager_Template Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2323
2424 - name : Install TFLint
2525 run : |
26- curl -s https://raw.githubusercontent.com/terraform-linters/tflint/master/install_linux.sh | bash
27- tflint --version
26+ # Get latest version number
27+ TFLINT_VERSION=$(curl -s https://api.github.com/repos/terraform-linters/tflint/releases/latest | grep '"tag_name":' | sed -E 's/.*"([^"]+)".*/\1/')
28+ echo "Installing TFLint version: ${TFLINT_VERSION}"
29+
30+ # Download TFLint
31+ curl -s -L -o tflint.zip "https://github.com/terraform-linters/tflint/releases/download/${TFLINT_VERSION}/tflint_linux_amd64.zip"
32+
33+ # Get and verify checksum
34+ EXPECTED_SHA=$(curl -s -L "https://github.com/terraform-linters/tflint/releases/download/${TFLINT_VERSION}/checksums.txt" | grep "tflint_linux_amd64.zip" | awk '{print $1}')
35+
36+ # Verify checksum
37+ if echo "${EXPECTED_SHA} tflint.zip" | sha256sum -c; then
38+ echo "Hash verification successful - proceeding with installation"
39+ unzip tflint.zip
40+ sudo mv tflint /usr/local/bin/
41+ tflint --version
42+ else
43+ echo "Hash verification failed - script not executed"
44+ exit 1
45+ fi
2846
2947 - name : Setup Terraform
3048 uses : hashicorp/setup-terraform@v2
Original file line number Diff line number Diff line change @@ -4,6 +4,6 @@ output "user_ocid" {
44}
55
66output "template_version" {
7- value = " v0.3.9 "
7+ value = " v0.3.10 "
88 description = " The version of CrowdStrike's OCI integration supported by this template"
99}
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ output "user_ocid" {
44}
55
66output "template_version" {
7- value = " v0.3.9 "
7+ value = " v0.3.10 "
88 description = " The version of CrowdStrike's OCI integration supported by this template."
99}
1010
You can’t perform that action at this time.
0 commit comments