Skip to content

Commit

Permalink
fix unversioned tfsec installation (#51)
Browse files Browse the repository at this point in the history
  • Loading branch information
figadore authored Apr 5, 2022
1 parent 888a4a0 commit 6d991b2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@ None
```yaml
steps:
- uses: actions/checkout@v2
- uses: triat/terraform-security-scan@v3.0.0
- uses: triat/terraform-security-scan@v3
```
The above example uses a tagged version (`v1`), you can also opt to use any of the released version.
The above example uses a tagged version (`v3`), you can also opt to use any of the released version.

To allow the action to add a comment to a PR when it fails you need to append the `GITHUB_TOKEN` variable to the tfsec action:

Expand Down
2 changes: 1 addition & 1 deletion entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ fi
if [[ -n "$INPUT_TFSEC_VERSION" ]]; then
env GO111MODULE=on go install github.com/aquasecurity/tfsec/cmd/tfsec@"${INPUT_TFSEC_VERSION}"
else
env GO111MODULE=on go get -u github.com/aquasecurity/tfsec/cmd/tfsec
env GO111MODULE=on go install github.com/aquasecurity/tfsec/cmd/tfsec@latest
fi

if [[ -n "$INPUT_TFSEC_EXCLUDE" ]]; then
Expand Down

0 comments on commit 6d991b2

Please sign in to comment.