File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change 3030 terraform_version : ${{ inputs.tf_version }}
3131 terraform_wrapper : ${{ inputs.tf_wrapper }}
3232
33-
3433 - name : Terraform format
3534 id : fmt
3635 run : terraform fmt -check
4443 run : terraform validate -no-color
4544
4645 - name : TFSec validation
46+ if : ${{ github.event.pull_request.base.ref == 'main' }}
4747 uses : aquasecurity/tfsec-pr-commenter-action@main
4848 with :
4949 github_token : ${{ secrets.token }}
Original file line number Diff line number Diff line change @@ -5,6 +5,7 @@ Terraform workflow to be reused in your project.
55* https://github.com/marketplace/actions/hashicorp-setup-terraform
66* https://github.com/marketplace/actions/run-tfsec-pr-commenter
77
8+ ** Disclaimer:** The tfsec commenter will run ONLY in pull requests
89
910## Inputs
1011* ` tf_version ` : Terraform version (type: string, default: 1.0.0)]
2930TODO
3031
3132## License
32- Distributed under the MIT License. See ` LICENSE ` for more information.
33+ Distributed under the MIT License. See ` LICENSE ` for more information.
You can’t perform that action at this time.
0 commit comments