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
|`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`|
223
+
|`checkov`and `terraform_checkov`|[checkov](https://github.com/bridgecrewio/checkov) static analysis of terraform templates to spot potential security issues. [Hook notes](#checkov-deprecated-and-terraform_checkov)|`checkov`<br>Ubuntu deps: `python3`, `python3-pip`|
224
224
|`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)|
225
+
|`terraform_docs`| Inserts input and output documentation into `README.md`. Recommended. [Hook notes](#terraform_docs)|`terraform-docs`|
225
226
|`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`|
226
227
|`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`|
227
-
|`terraform_docs`| Inserts input and output documentation into `README.md`. Recommended. [Hook notes](#terraform_docs)|`terraform-docs`|
228
228
|`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`|
@@ -240,9 +240,24 @@ Check the [source file](https://github.com/antonbabenko/pre-commit-terraform/blo
240
240
241
241
## Hooks usage notes and examples
242
242
243
-
### checkov
243
+
### checkov (deprecated) and terraform_checkov
244
+
245
+
> `checkov` hook is deprecated, please use `terraform_checkov`.
246
+
247
+
Note that `terraform_checkov` runs recursively during `-d .` usage. That means, for example, if you change `.tf` file in repo root, all existing `.tf` files in repo will be checked.
248
+
249
+
1. You can specify custom arguments. E.g.:
250
+
251
+
```yaml
252
+
- id: terraform_checkov
253
+
args:
254
+
- --args=--quiet
255
+
- --args=--skip-check CKV2_AWS_8
256
+
```
257
+
258
+
Check all available arguments [here](https://www.checkov.io/2.Basics/CLI%20Command%20Reference.html).
244
259
245
-
For [checkov](https://github.com/bridgecrewio/checkov) you need to specify each argument separately:
260
+
For deprecated hook you need to specify each argument separately:
0 commit comments