File tree Expand file tree Collapse file tree 4 files changed +8
-8
lines changed
actions/secure-setup-terraform Expand file tree Collapse file tree 4 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -31,11 +31,11 @@ runs:
3131 - name : ' download-linters'
3232 shell : ' bash'
3333 env :
34- release_version : ' 0.0.11'
35- release_location : ' https://github.com/bradegler/secure-setup-terraform/releases/tag'
34+ RELEASE_VERSION : ' 0.0.11'
35+ RELEASE_LOCATION : ' https://github.com/bradegler/secure-setup-terraform/releases/tag'
3636 run : |-
37- curl -H "Authorization: token ${{ github.token }}" -O "${{env.release_location }}/v${{env.release_version }}/secure-setup-terraform_${{env.release_version }}_linux_amd64.tar.gz"
38- tar xf secure-setup-terraform_${{env.release_version }}_linux_amd64.tar.gz
37+ curl -H "Authorization: token ${{ github.token }}" -O "${{env.RELEASE_LOCATION }}/v${{env.RELEASE_VERSION }}/secure-setup-terraform_${{env.RELEASE_VERSION }}_linux_amd64.tar.gz"
38+ tar xf secure-setup-terraform_${{env.RELEASE_VERSION }}_linux_amd64.tar.gz
3939
4040 # Recursively search for terraform files in the current repo and run a linter that fails when it finds calls to 'local-exec'
4141 - name : ' lint-terraform'
Original file line number Diff line number Diff line change 2727 get_and_verify_checksum :
2828 runs-on : ' ubuntu-latest'
2929 env :
30- VERSION : ${{ inputs.terraform_version }}
30+ VERSION : ' ${{ inputs.terraform_version }}'
3131 outputs :
3232 binary_checksum : ' ${{ steps.verify-checksum.outputs.binary_checksum }}'
3333 archive_checksum : ' ${{ steps.verify-checksum.outputs.archive_checksum }}'
8181 BIN_SUM=$(shasum -a 256 terraform | cut -d' ' -f1)
8282
8383 # Store the binary and the archive checksums as outputs
84- echo "archive_checksum=${ARCH_SUM}"
85- echo "binary_checksum=${BIN_SUM}"
84+ echo "archive_checksum=${ARCH_SUM}" >> $GITHUB_OUTPUT
85+ echo "binary_checksum=${BIN_SUM}" >> $GITHUB_OUTPUT
8686
8787 unset GNUPGHOME
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -35,6 +35,7 @@ type ViolationInstance struct {
3535type Linter interface {
3636 // Selectors provides a set of file suffixes to search for. '.tf', '.yml', etc.
3737 Selectors () []string
38+
3839 // FindViolations is the specific linter implementation that is applied to each
3940 // file to find any lint violations.
4041 FindViolations (content []byte , path string ) ([]* ViolationInstance , error )
You can’t perform that action at this time.
0 commit comments