-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.pre-commit-config.yaml
40 lines (32 loc) · 1.04 KB
/
.pre-commit-config.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
default_stages:
- pre-commit
- pre-push
fail_fast: false
repos:
- repo: https://github.com/gruntwork-io/pre-commit
rev: v0.1.23
hooks:
- id: terragrunt-hclfmt
- id: terraform-fmt
# NOTE: https://github.com/hashicorp/terraform/issues/28490#issuecomment-2437708356
# - id: terraform-validate
- id: tflint
args: ["--minimum-failure-severity=error"]
- repo: https://github.com/terraform-docs/terraform-docs
rev: "v0.19.0"
hooks:
- id: terraform-docs-go
name: terraform-docs-check
args: ["markdown", "-c", ".config/tfdocs-config.yaml", "--output-check", "./infrastructure"]
- id: terraform-docs-go
name: terraform-docs-generate
args: ["markdown", "-c", ".config/tfdocs-config.yaml", "./infrastructure"]
- repo: local
hooks:
- id: trivy-fs
stages:
- pre-push
name: trivy-fs
language: docker_image
entry: -v /tmp:/.cache aquasec/trivy:latest fs -c .config/trivy.yaml .
pass_filenames: false