Skip to content

Commit 6196b4a

Browse files
bradeglerverbanicm
authored andcommitted
pr review comments
1 parent 7ef7618 commit 6196b4a

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff 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'

.github/workflows/generate-terraform-checksum.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jobs:
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 }}'
@@ -81,7 +81,7 @@ jobs:
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

.go-version

Lines changed: 0 additions & 1 deletion
This file was deleted.

pkg/linter/linter.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ type ViolationInstance struct {
3535
type 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)

0 commit comments

Comments
 (0)