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
Copy file name to clipboardExpand all lines: README.md
+19-1Lines changed: 19 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,11 +9,13 @@
9
9
*[`pre-commit`](https://pre-commit.com/#install)
10
10
*[`terraform-docs`](https://github.com/segmentio/terraform-docs) required for `terraform_docs` hooks. `GNU awk` is required if using `terraform-docs` older than 0.8.0 with Terraform 0.12.
11
11
*[`TFLint`](https://github.com/terraform-linters/tflint) required for `terraform_tflint` hook.
12
+
*[`TFSec`](https://github.com/liamg/tfsec) required for `terraform_tfsec` hook.
env GO111MODULE=on go get -u github.com/liamg/tfsec/cmd/tfsec
26
29
```
27
30
28
31
### 2. Install the pre-commit hook globally
@@ -69,6 +72,7 @@ There are several [pre-commit](https://pre-commit.com/) hooks to keep Terraform
69
72
|`terraform_docs_replace`| Runs `terraform-docs` and pipes the output directly to README.md |
70
73
|`terraform_tflint`| Validates all Terraform configuration files with [TFLint](https://github.com/terraform-linters/tflint). |
71
74
|`terragrunt_fmt`| Rewrites all [Terragrunt](https://github.com/gruntwork-io/terragrunt) configuration files (`*.hcl`) to a canonical format. |
75
+
|`terraform_tfsec`|[TFSec](https://github.com/liamg/tfsec) static analysis of terraform templates to spot potential security issues. |
72
76
73
77
Check the [source file](https://github.com/antonbabenko/pre-commit-terraform/blob/master/.pre-commit-hooks.yaml) to know arguments used for each hook.
74
78
@@ -112,6 +116,20 @@ if they are present in `README.md`.
0 commit comments