You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -185,24 +187,24 @@ docker run --entrypoint cat pre-commit:latest /usr/bin/tools_versions_info
185
187
186
188
## Available Hooks
187
189
188
-
There are several [pre-commit](https://pre-commit.com/) hooks to keep Terraform configurations (both `*.tf` and `*.tfvars`) and Terragrunt configurations (`*.hcl`) in a good shape:
190
+
There are several [pre-commit](https://pre-commim/) hooks to keep Terraform configurations (both `*.tf` and `*.tfvars`) and Terragrunt configurations (`*.hcl`) in a good shape:
189
191
190
192
<!-- markdownlint-disable no-inline-html -->
191
-
| Hook name | Description | Dependencies<br><sup>[Install instructions here](#1-install-dependencies)</sup> |
|`checkov`|[checkov](https://github.com/bridgecrewio/checkov) static analysis of terraform templates to spot potential security issues. [Hook notes](#checkov)|`checkov`<br>Ubuntu deps: `python3`, `python3-pip`|
194
-
| `infracost_breakdown` | Check how much your infra costs with [infracost](https://github.com/infracost/infracost). [Hook notes](#infracost_breakdown) | `infracost`, `jq`, [Infracost API key](https://www.infracost.io/docs/#2-get-api-key)
195
-
|`terraform_docs_replace`| Runs `terraform-docs` and pipes the output directly to README.md|`python3`, `terraform-docs`|
196
-
|`terraform_docs_without_`<br>`aggregate_type_defaults`| Inserts input and output documentation into `README.md` without aggregate type defaults. Hook notes same as for [terraform_docs](#terraform_docs)|`terraform-docs`|
197
-
|`terraform_docs`| Inserts input and output documentation into `README.md`. Recommended. [Hook notes](#terraform_docs)|`terraform-docs`|
198
-
|`terraform_fmt`| Reformat all Terraform configuration files to a canonical format. [Hook notes](#terraform_fmt)| - |
|`terraform_tflint`| Validates all Terraform configuration files with [TFLint](https://github.com/terraform-linters/tflint). [Available TFLint rules](https://github.com/terraform-linters/tflint/tree/master/docs/rules#rules). [Hook notes](#terraform_tflint). |`tflint`|
201
-
|`terraform_tfsec`|[TFSec](https://github.com/aquasecurity/tfsec) static analysis of terraform templates to spot potential security issues. [Hook notes](#terraform_tfsec)|`tfsec`|
202
-
|`terraform_validate`| Validates all Terraform configuration files. [Hook notes](#terraform_validate)| - |
203
-
|`terragrunt_fmt`| Reformat all [Terragrunt](https://github.com/gruntwork-io/terragrunt) configuration files (`*.hcl`) to a canonical format. |`terragrunt`|
204
-
|`terragrunt_validate`| Validates all [Terragrunt](https://github.com/gruntwork-io/terragrunt) configuration files (`*.hcl`) |`terragrunt`|
205
-
|`terrascan`|[terrascan](https://github.com/accurics/terrascan) Detect compliance and security violations. |`terrascan`|
193
+
| Hook name | Description | Dependencies<br><sup>[Install instructions here](#1-install-dependencies)</sup> |
|`checkov`|[checkov](https://github.com/bridgecrewio/checkov) static analysis of terraform templates to spot potential security issues. [Hook notes](#checkov)|`checkov`<br>Ubuntu deps: `python3`, `python3-pip`|
196
+
|`infracost_breakdown`| Check how much your infra costs with [infracost](https://github.com/infracost/infracost). [Hook notes](#infracost_breakdown)|`infracost`, `jq`, [Infracost API key](https://www.infracost.io/docs/#2-get-api-key)|
197
+
|`terraform_docs_replace`| Runs `terraform-docs` and pipes the output directly to README.md. **DEPRECATED**, see [#248](https://github.com/antonbabenko/pre-commit-terraform/issues/248). [Hook notes](#terraform_docs_replace-deprecated)|`python3`, `terraform-docs`|
198
+
|`terraform_docs_without_`<br>`aggregate_type_defaults`| Inserts input and output documentation into `README.md` without aggregate type defaults. Hook notes same as for [terraform_docs](#terraform_docs)|`terraform-docs`|
199
+
|`terraform_docs`| Inserts input and output documentation into `README.md`. Recommended. [Hook notes](#terraform_docs)|`terraform-docs`|
200
+
|`terraform_fmt`| Reformat all Terraform configuration files to a canonical format. [Hook notes](#terraform_fmt)| - |
|`terraform_tflint`| Validates all Terraform configuration files with [TFLint](https://github.com/terraform-linters/tflint). [Available TFLint rules](https://github.com/terraform-linters/tflint/tree/master/docs/rules#rules). [Hook notes](#terraform_tflint). |`tflint`|
203
+
|`terraform_tfsec`|[TFSec](https://github.com/aquasecurity/tfsec) static analysis of terraform templates to spot potential security issues. [Hook notes](#terraform_tfsec)|`tfsec`|
204
+
|`terraform_validate`| Validates all Terraform configuration files. [Hook notes](#terraform_validate)| - |
205
+
|`terragrunt_fmt`| Reformat all [Terragrunt](https://github.com/gruntwork-io/terragrunt) configuration files (`*.hcl`) to a canonical format. |`terragrunt`|
206
+
|`terragrunt_validate`| Validates all [Terragrunt](https://github.com/gruntwork-io/terragrunt) configuration files (`*.hcl`) |`terragrunt`|
207
+
|`terrascan`|[terrascan](https://github.com/accurics/terrascan) Detect compliance and security violations. |`terrascan`|
206
208
<!-- markdownlint-enable no-inline-html -->
207
209
208
210
Check the [source file](https://github.com/antonbabenko/pre-commit-terraform/blob/master/.pre-commit-hooks.yaml) to know arguments used for each hook.
@@ -346,7 +348,9 @@ Unlike most other hooks, this hook triggers once if there are any changed files
**DEPRECATED**. Will be merged in [`terraform_docs`](#terraform_docs). See [#248](https://github.com/antonbabenko/pre-commit-terraform/issues/248) for details.
350
354
351
355
`terraform_docs_replace`replaces the entire README.md rather than doing string replacement between markers. Put your additional documentation at the top of your `main.tf` for it to be pulled in. The optional `--dest` argument lets you change the filename that gets created/modified.
0 commit comments