Skip to content

Commit 8617134

Browse files
bradeglerverbanicm
authored andcommitted
fix: hardcoded version, example location (#4)
Replaced hardcoded version information with correct reference to input value. Moved the example workflow out of the .github/workflows folder into an 'examples' folder.
1 parent 46beec5 commit 8617134

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.github/actions/secure-setup-terraform/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ runs:
5353
name: 'verify-binary-checksum'
5454
shell: 'bash'
5555
run: |-
56-
CHECKSUM=$(jq -r '.versions[] | select(.version=="1.3.3" and .arch=="amd64" and .os=="linux") | .binary_checksum' < terraform-checksums.json)
56+
CHECKSUM=$(jq -r --arg version ${{ inputs.terraform_version }} '.versions[] | select(.version==$version and .arch=="amd64" and .os=="linux") | .binary_checksum' < terraform-checksums.json)
5757
echo "${CHECKSUM} $(which terraform)" > terraform.sha256
5858
shasum --algorithm 256 --check terraform.sha256
5959

.github/workflows/verify-secure-terraform.yml renamed to example/verify-secure-terraform.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ on:
1919
inputs:
2020
terraform_version:
2121
type: string
22-
description: Terraform version (e.g 1.3.2)
22+
description: Terraform version (e.g 1.3.3)
2323
required: false
2424
default: '1.3.3'
2525

0 commit comments

Comments
 (0)