File tree 1 file changed +46
-0
lines changed
1 file changed +46
-0
lines changed Original file line number Diff line number Diff line change
1
+ default_stages : [pre-commit]
2
+ repos :
3
+ - repo : https://github.com/pre-commit/pre-commit-hooks
4
+ rev : v5.0.0
5
+ hooks :
6
+ - id : trailing-whitespace
7
+ - id : end-of-file-fixer
8
+ - id : check-yaml
9
+ - id : check-added-large-files
10
+ - id : check-case-conflict
11
+ - id : check-merge-conflict
12
+ - repo : https://github.com/antonbabenko/pre-commit-terraform
13
+ rev : v1.96.3
14
+ hooks :
15
+ - id : terraform_fmt
16
+ args :
17
+ - --args=-recursive
18
+ exclude : ' .*/\.terragrunt-cache'
19
+ - id : terraform_validate
20
+ - id : terraform_tflint
21
+ - id : terraform_trivy
22
+ - id : terraform_docs
23
+ args :
24
+ - --hook-config=--add-to-existing-file=true # Boolean. true or false
25
+ - --hook-config=--create-file-if-not-exist=true # Boolean. true or false
26
+ - --args=--output-mode=replace
27
+ - id : tfupdate
28
+ name : Autoupdate Terraform versions
29
+ args :
30
+ - --args=provider azurerm # Will be pined to latest version
31
+ - repo : https://github.com/bridgecrewio/checkov.git
32
+ rev : ' 3.2.346' # change to tag or sha
33
+ hooks :
34
+ - id : checkov
35
+ verbose : true
36
+ args : ['--quiet', '--compact', '--soft-fail']
37
+ - repo : https://github.com/bridgecrewio/yor
38
+ rev : 0.1.199
39
+ hooks :
40
+ - id : yor
41
+ name : yor
42
+ entry : yor tag -d
43
+ args : ["."]
44
+ language : golang
45
+ types : [terraform]
46
+ pass_filenames : false
You can’t perform that action at this time.
0 commit comments