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
@@ -72,9 +74,9 @@ or you can also build and use the provided Docker container, which wraps all dep
72
74
```bash
73
75
# first building it
74
76
docker build -t pre-commit .
75
-
# and then running it in the folder
77
+
# and then running it in the folder
76
78
# with the terraform code you want to check by executing
77
-
docker run -v $(pwd):/lint -w /lint pre-commit run -a
79
+
docker run -v $(pwd):/lint -w /lint pre-commit run -a
78
80
```
79
81
80
82
## Available Hooks
@@ -93,6 +95,7 @@ There are several [pre-commit](https://pre-commit.com/) hooks to keep Terraform
93
95
|`terragrunt_validate`| Validates all [Terragrunt](https://github.com/gruntwork-io/terragrunt) configuration files (`*.hcl`) |
94
96
|`terraform_tfsec`|[TFSec](https://github.com/liamg/tfsec) static analysis of terraform templates to spot potential security issues. |
95
97
|`checkov`|[checkov](https://github.com/bridgecrewio/checkov) static analysis of terraform templates to spot potential security issues. |
98
+
|`terrascan`|[terrascan](https://github.com/accurics/terrascan) Detect compliance and security violations. |
96
99
97
100
Check the [source file](https://github.com/antonbabenko/pre-commit-terraform/blob/master/.pre-commit-hooks.yaml) to know arguments used for each hook.
0 commit comments