|
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)(vars)?|hcl)$ |
8 | 8 | exclude: \.terraform\/.*$
|
9 | 9 |
|
10 | 10 | - id: tofu_fmt
|
11 | 11 | name: OpenTofu fmt
|
12 | 12 | description: Rewrites all OpenTofu configuration files to a canonical format.
|
13 | 13 | entry: hooks/tofu_fmt.sh
|
14 | 14 | language: script
|
15 |
| - files: (\.tf|\.tfvars)$ |
| 15 | + files: \.(tf|tofu)(vars)?$ |
16 | 16 | exclude: \.terraform\/.*$
|
17 | 17 |
|
18 | 18 | - id: tofu_docs
|
19 | 19 | name: OpenTofu docs
|
20 |
| - description: Inserts input and output documentation into README.md (using terraform-docs). |
| 20 | + description: |
| 21 | + Inserts input and output documentation into README.md (using |
| 22 | + terraform-docs). |
21 | 23 | require_serial: true
|
22 | 24 | entry: hooks/tofu_docs.sh
|
23 | 25 | language: script
|
24 |
| - files: (\.tf|\.terraform\.lock\.hcl)$ |
| 26 | + files: (\.(tf|tofu)|\.terraform\.lock\.hcl)$ |
25 | 27 | exclude: \.terraform\/.*$
|
26 | 28 |
|
27 | 29 | - id: tofu_docs_without_aggregate_type_defaults
|
28 | 30 | name: OpenTofu docs (without aggregate type defaults)
|
29 |
| - description: Inserts input and output documentation into README.md (using terraform-docs). Identical to terraform_docs. |
| 31 | + description: |
| 32 | + Inserts input and output documentation into README.md (using |
| 33 | + terraform-docs). Identical to terraform_docs. |
30 | 34 | require_serial: true
|
31 | 35 | entry: hooks/tofu_docs.sh
|
32 | 36 | language: script
|
33 |
| - files: (\.tf)$ |
| 37 | + files: \.(tf|tofu)$ |
34 | 38 | exclude: \.terraform\/.*$
|
35 | 39 |
|
36 | 40 | - id: tofu_docs_replace
|
|
39 | 43 | require_serial: true
|
40 | 44 | entry: hooks/tofu_docs_replace.py
|
41 | 45 | language: python
|
42 |
| - files: (\.tf)$ |
| 46 | + files: \.(tf|tofu)$ |
43 | 47 | exclude: \.terraform\/.*$
|
44 | 48 |
|
45 | 49 | - id: tofu_validate
|
|
48 | 52 | require_serial: true
|
49 | 53 | entry: hooks/tofu_validate.sh
|
50 | 54 | language: script
|
51 |
| - files: (\.tf|\.tfvars)$ |
| 55 | + files: \.(tf|tofu)(vars)?$ |
52 | 56 | exclude: \.terraform\/.*$
|
53 | 57 |
|
54 | 58 | - id: tofu_providers_lock
|
|
66 | 70 | require_serial: true
|
67 | 71 | entry: hooks/tofu_tflint.sh
|
68 | 72 | language: script
|
69 |
| - files: (\.tf|\.tfvars)$ |
| 73 | + files: \.(tf|tofu)(vars)?$ |
70 | 74 | exclude: \.terraform\/.*$
|
71 | 75 |
|
72 | 76 | - id: terragrunt_fmt
|
73 | 77 | name: Terragrunt fmt
|
74 |
| - description: Rewrites all Terragrunt configuration files to a canonical format. |
| 78 | + description: |
| 79 | + Rewrites all Terragrunt configuration files to a canonical format. |
75 | 80 | entry: hooks/terragrunt_fmt.sh
|
76 | 81 | language: script
|
77 | 82 | files: (\.hcl)$
|
|
87 | 92 |
|
88 | 93 | - id: tofu_tfsec
|
89 | 94 | name: OpenTofu validate with tfsec (deprecated, use "tofu_trivy")
|
90 |
| - description: Static analysis of OpenTofu templates to spot potential security issues. |
| 95 | + description: |
| 96 | + Static analysis of OpenTofu templates to spot potential security issues. |
91 | 97 | require_serial: true
|
92 | 98 | entry: hooks/tofu_tfsec.sh
|
93 |
| - files: \.tf(vars)?$ |
| 99 | + files: \.(tf|tofu)(vars)?$ |
94 | 100 | language: script
|
95 | 101 |
|
96 | 102 | - id: tofu_trivy
|
97 | 103 | name: OpenTofu validate with trivy
|
98 |
| - description: Static analysis of OpenTofu templates to spot potential security issues. |
| 104 | + description: |
| 105 | + Static analysis of OpenTofu templates to spot potential security issues. |
99 | 106 | require_serial: true
|
100 | 107 | entry: hooks/tofu_trivy.sh
|
101 |
| - files: \.tf(vars)?$ |
| 108 | + files: \.(tf|tofu)(vars)?$ |
102 | 109 | language: script
|
103 | 110 |
|
104 | 111 | - id: checkov
|
|
118 | 125 | entry: hooks/tofu_checkov.sh
|
119 | 126 | language: script
|
120 | 127 | always_run: false
|
121 |
| - files: \.tf$ |
| 128 | + files: \.(tf|tofu)$ |
122 | 129 | exclude: \.terraform\/.*$
|
123 | 130 | require_serial: true
|
124 | 131 |
|
|
138 | 145 | description: Runs terrascan on OpenTofu templates.
|
139 | 146 | language: script
|
140 | 147 | entry: hooks/terrascan.sh
|
141 |
| - files: \.tf$ |
| 148 | + files: \.(tf|tofu)$ |
142 | 149 | exclude: \.terraform\/.*$
|
143 | 150 | require_serial: true
|
144 | 151 |
|
|
149 | 156 | entry: hooks/tfupdate.sh
|
150 | 157 | args:
|
151 | 158 | - --args=terraform
|
152 |
| - files: \.tf$ |
| 159 | + files: \.(tf|tofu)$ |
153 | 160 | require_serial: true
|
0 commit comments