|
4 | 4 | entry: hooks/infracost_breakdown.sh |
5 | 5 | language: script |
6 | 6 | require_serial: true |
7 | | - files: \.- id: terraform_vali- id: terraform_tf- id: terraform_docs_d- id: terraform_check- id: terraform_trivy- id: infracost_breakdown_docker |
8 | | - name: Infracost breakdown (Docker) |
9 | | - description: Check terraform infrastructure cost using Docker. |
10 | | - entry: infracost |
11 | | - language: docker_image |
12 | | - docker_image: ghcr.io/actuarysailor/pre-commit-terraform-tools:latest |
13 | | - args: [breakdown, --path, .] |
14 | | - require_serial: true |
15 | 7 | files: \.(tf|tofu|tfvars|hcl)$ |
16 | | - exclude: \.terraform/.*$name: Terraform validate with trivy (Docker) |
17 | | - description: >- |
18 | | - Static analysis of Terraform templates to spot potential security issues using Docker. |
19 | | - require_serial: true |
20 | | - entry: trivy |
21 | | - language: docker_image |
22 | | - docker_image: ghcr.io/actuarysailor/pre-commit-terraform-tools:latest |
23 | | - args: [config, .] |
24 | | - files: \.(tf|tofu|tfvars)$ |
25 | | - exclude: \.terraform/.*$ name: Checkov (Docker) |
26 | | - description: Runs checkov on Terraform templates using Docker. |
27 | | - entry: checkov |
28 | | - language: docker_image |
29 | | - docker_image: ghcr.io/actuarysailor/pre-commit-terraform-tools:latest |
30 | | - args: [-d, .] |
31 | | - always_run: false |
32 | | - files: \.(tf|tofu)$ |
33 | | - exclude: \.terraform/.*$ |
34 | | - require_serial: truee: Terraform docs (Docker) |
35 | | - description: >- |
36 | | - Inserts input and output documentation into README.md using Docker. |
37 | | - require_serial: true |
38 | | - entry: terraform-docs |
39 | | - language: docker_image |
40 | | - docker_image: ghcr.io/actuarysailor/pre-commit-terraform-tools:latest |
41 | | - args: [markdown, table, --output-file, README.md, .] |
42 | | - files: \.(tf|tofu|terraform\.lock\.hcl)$ |
43 | | - exclude: \.terraform/.*$ |
44 | | - name: Terraform validate with tflint (Docker) |
45 | | - description: Validates all Terraform configuration files with TFLint using Docker. |
46 | | - require_serial: true |
47 | | - entry: tflint |
48 | | - language: docker_image |
49 | | - docker_image: ghcr.io/actuarysailor/pre-commit-terraform-tools:latest |
50 | | - files: \.(tf|tofu|tfvars)$ |
51 | | - exclude: \.terraform/.*$er |
52 | | - name: Terraform validate (Docker) |
53 | | - description: Validates all Terraform configuration files using Docker. |
54 | | - require_serial: true |
55 | | - entry: terraform |
56 | | - language: docker_image |
57 | | - docker_image: ghcr.io/actuarysailor/pre-commit-terraform-tools:latest |
58 | | - args: [validate] |
59 | | - files: \.(tf|tofu|tfvars|terraform\.lock\.hcl)$ |
60 | | - exclude: \.terraform/.*$fvars|hcl)$ |
61 | 8 | exclude: \.terraform/.*$ |
62 | 9 |
|
63 | 10 | - id: terraform_fmt |
|
233 | 180 | require_serial: true |
234 | 181 |
|
235 | 182 | # Docker-based versions of hooks (non-breaking additions) |
236 | | -# Note: These require a modified Docker image with ENTRYPOINT [] |
237 | | -# or use of a custom wrapper image |
238 | 183 | - id: terraform_fmt_docker |
239 | 184 | name: Terraform fmt (Docker) |
240 | 185 | description: >- |
241 | 186 | Rewrites all Terraform configuration files to a canonical format using Docker. |
242 | | - Requires Docker image with overridden entrypoint. |
243 | 187 | entry: terraform |
244 | 188 | language: docker_image |
245 | 189 | docker_image: ghcr.io/actuarysailor/pre-commit-terraform-tools:latest |
|
253 | 197 | require_serial: true |
254 | 198 | entry: terraform |
255 | 199 | language: docker_image |
256 | | - docker_image: ghcr.io/antonbabenko/pre-commit-terraform:latest |
| 200 | + docker_image: ghcr.io/actuarysailor/pre-commit-terraform-tools:latest |
257 | 201 | args: [validate] |
258 | 202 | files: \.(tf|tofu|tfvars|terraform\.lock\.hcl)$ |
259 | 203 | exclude: \.terraform/.*$ |
|
264 | 208 | require_serial: true |
265 | 209 | entry: tflint |
266 | 210 | language: docker_image |
267 | | - docker_image: ghcr.io/antonbabenko/pre-commit-terraform:latest |
| 211 | + docker_image: ghcr.io/actuarysailor/pre-commit-terraform-tools:latest |
268 | 212 | files: \.(tf|tofu|tfvars)$ |
269 | 213 | exclude: \.terraform/.*$ |
270 | 214 |
|
|
275 | 219 | require_serial: true |
276 | 220 | entry: terraform-docs |
277 | 221 | language: docker_image |
278 | | - docker_image: ghcr.io/antonbabenko/pre-commit-terraform:latest |
| 222 | + docker_image: ghcr.io/actuarysailor/pre-commit-terraform-tools:latest |
279 | 223 | args: [markdown, table, --output-file, README.md, .] |
280 | 224 | files: \.(tf|tofu|terraform\.lock\.hcl)$ |
281 | 225 | exclude: \.terraform/.*$ |
|
285 | 229 | description: Runs checkov on Terraform templates using Docker. |
286 | 230 | entry: checkov |
287 | 231 | language: docker_image |
288 | | - docker_image: ghcr.io/antonbabenko/pre-commit-terraform:latest |
| 232 | + docker_image: ghcr.io/actuarysailor/pre-commit-terraform-tools:latest |
289 | 233 | args: [-d, .] |
290 | 234 | always_run: false |
291 | 235 | files: \.(tf|tofu)$ |
|
299 | 243 | require_serial: true |
300 | 244 | entry: trivy |
301 | 245 | language: docker_image |
302 | | - docker_image: ghcr.io/antonbabenko/pre-commit-terraform:latest |
| 246 | + docker_image: ghcr.io/actuarysailor/pre-commit-terraform-tools:latest |
303 | 247 | args: [config, .] |
304 | 248 | files: \.(tf|tofu|tfvars)$ |
305 | 249 | exclude: \.terraform/.*$ |
|
309 | 253 | description: Check terraform infrastructure cost using Docker. |
310 | 254 | entry: infracost |
311 | 255 | language: docker_image |
312 | | - docker_image: ghcr.io/antonbabenko/pre-commit-terraform:latest |
| 256 | + docker_image: ghcr.io/actuarysailor/pre-commit-terraform-tools:latest |
313 | 257 | args: [breakdown, --path, .] |
314 | 258 | require_serial: true |
315 | 259 | files: \.(tf|tofu|tfvars|hcl)$ |
|
0 commit comments