|
4 | 4 | entry: hooks/infracost_breakdown.sh
|
5 | 5 | language: script
|
6 | 6 | require_serial: true
|
7 |
| - files: \.(tf(vars)?|hcl)$ |
| 7 | + files: \.(tf|tofu|tfvars|hcl)$ |
8 | 8 | exclude: \.terraform/.*$
|
9 | 9 |
|
10 | 10 | - id: terraform_fmt
|
|
13 | 13 | Rewrites all Terraform configuration files to a canonical format.
|
14 | 14 | entry: hooks/terraform_fmt.sh
|
15 | 15 | language: script
|
16 |
| - files: (\.tf|\.tfvars)$ |
| 16 | + files: \.(tf|tofu|tfvars)$ |
17 | 17 | exclude: \.terraform/.*$
|
18 | 18 |
|
19 | 19 | - id: terraform_docs
|
|
24 | 24 | require_serial: true
|
25 | 25 | entry: hooks/terraform_docs.sh
|
26 | 26 | language: script
|
27 |
| - files: (\.tf|\.terraform\.lock\.hcl)$ |
| 27 | + files: \.(tf|tofu|terraform\.lock\.hcl)$ |
28 | 28 | exclude: \.terraform/.*$
|
29 | 29 |
|
30 | 30 | - id: terraform_docs_without_aggregate_type_defaults
|
|
35 | 35 | require_serial: true
|
36 | 36 | entry: hooks/terraform_docs.sh
|
37 | 37 | language: script
|
38 |
| - files: (\.tf)$ |
| 38 | + files: \.(tf|tofu)$ |
39 | 39 | exclude: \.terraform/.*$
|
40 | 40 |
|
41 | 41 | - id: terraform_docs_replace
|
|
44 | 44 | require_serial: true
|
45 | 45 | entry: python -Im pre_commit_terraform replace-docs
|
46 | 46 | language: python
|
47 |
| - files: (\.tf)$ |
| 47 | + files: \.(tf|tofu)$ |
48 | 48 | exclude: \.terraform/.*$
|
49 | 49 |
|
50 | 50 | - id: terraform_validate
|
|
53 | 53 | require_serial: true
|
54 | 54 | entry: hooks/terraform_validate.sh
|
55 | 55 | language: script
|
56 |
| - files: \.(tf(vars)?|terraform\.lock\.hcl)$ |
| 56 | + files: \.(tf|tofu|tfvars|terraform\.lock\.hcl)$ |
57 | 57 | exclude: \.terraform/.*$
|
58 | 58 |
|
59 | 59 | - id: terraform_providers_lock
|
|
71 | 71 | require_serial: true
|
72 | 72 | entry: hooks/terraform_tflint.sh
|
73 | 73 | language: script
|
74 |
| - files: (\.tf|\.tfvars)$ |
| 74 | + files: \.(tf|tofu|tfvars)$ |
75 | 75 | exclude: \.terraform/.*$
|
76 | 76 |
|
77 | 77 | - id: terragrunt_fmt
|
|
114 | 114 | Static analysis of Terraform templates to spot potential security issues.
|
115 | 115 | require_serial: true
|
116 | 116 | entry: hooks/terraform_tfsec.sh
|
117 |
| - files: \.tf(vars)?$ |
| 117 | + files: \.(tf|tofu|tfvars)$ |
118 | 118 | language: script
|
119 | 119 |
|
120 | 120 | - id: terraform_trivy
|
|
123 | 123 | Static analysis of Terraform templates to spot potential security issues.
|
124 | 124 | require_serial: true
|
125 | 125 | entry: hooks/terraform_trivy.sh
|
126 |
| - files: \.tf(vars)?$ |
| 126 | + files: \.(tf|tofu|tfvars)$ |
127 | 127 | language: script
|
128 | 128 |
|
129 | 129 | - id: checkov
|
|
133 | 133 | language: python
|
134 | 134 | pass_filenames: false
|
135 | 135 | always_run: false
|
136 |
| - files: \.tf$ |
| 136 | + files: \.(tf|tofu)$ |
137 | 137 | exclude: \.terraform/.*$
|
138 | 138 | require_serial: true
|
139 | 139 |
|
|
143 | 143 | entry: hooks/terraform_checkov.sh
|
144 | 144 | language: script
|
145 | 145 | always_run: false
|
146 |
| - files: \.tf$ |
| 146 | + files: \.(tf|tofu)$ |
147 | 147 | exclude: \.terraform/.*$
|
148 | 148 | require_serial: true
|
149 | 149 |
|
|
155 | 155 | pass_filenames: false
|
156 | 156 | always_run: false
|
157 | 157 | require_serial: true
|
158 |
| - files: \.tf$ |
| 158 | + files: \.(tf|tofu)$ |
159 | 159 | exclude: \.terraform/.*$
|
160 | 160 |
|
161 | 161 | - id: terrascan
|
162 | 162 | name: terrascan
|
163 | 163 | description: Runs terrascan on Terraform templates.
|
164 | 164 | language: script
|
165 | 165 | entry: hooks/terrascan.sh
|
166 |
| - files: \.tf$ |
| 166 | + files: \.(tf|tofu)$ |
167 | 167 | exclude: \.terraform/.*$
|
168 | 168 | require_serial: true
|
169 | 169 |
|
|
174 | 174 | entry: hooks/tfupdate.sh
|
175 | 175 | args:
|
176 | 176 | - --args=terraform
|
177 |
| - files: \.tf$ |
| 177 | + files: \.(tf|tofu)$ |
178 | 178 | require_serial: true
|
0 commit comments