File tree 2 files changed +3
-2
lines changed
2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change 30
30
terraform_version : ${{ inputs.tf_version }}
31
31
terraform_wrapper : ${{ inputs.tf_wrapper }}
32
32
33
-
34
33
- name : Terraform format
35
34
id : fmt
36
35
run : terraform fmt -check
44
43
run : terraform validate -no-color
45
44
46
45
- name : TFSec validation
46
+ if : ${{ github.event.pull_request.base.ref == 'main' }}
47
47
uses : aquasecurity/tfsec-pr-commenter-action@main
48
48
with :
49
49
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.
5
5
* https://github.com/marketplace/actions/hashicorp-setup-terraform
6
6
* https://github.com/marketplace/actions/run-tfsec-pr-commenter
7
7
8
+ ** Disclaimer:** The tfsec commenter will run ONLY in pull requests
8
9
9
10
## Inputs
10
11
* ` tf_version ` : Terraform version (type: string, default: 1.0.0)]
29
30
TODO
30
31
31
32
## 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