generated from getindata/terraform-module-template
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: Update pre-commit repos to the latest versions
- Loading branch information
1 parent
2e23d26
commit fb28567
Showing
1 changed file
with
12 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,33 @@ | ||
repos: | ||
- repo: https://github.com/gruntwork-io/pre-commit | ||
rev: "v0.1.17" # Get the latest from: https://github.com/gruntwork-io/pre-commit/releases | ||
rev: "v0.1.22" # Get the latest from: https://github.com/gruntwork-io/pre-commit/releases | ||
hooks: | ||
- id: terraform-validate # It should be before tflint hook as it runs terraform init required by tflint | ||
- id: terraform-fmt | ||
- id: tflint | ||
args: | ||
- --module | ||
- --config=.tflint.hcl | ||
- id: terraform-validate | ||
- id: terraform-fmt | ||
|
||
- repo: https://github.com/terraform-docs/terraform-docs | ||
rev: "v0.16.0" # Get the latest from: https://github.com/antonbabenko/pre-commit-terraform/releases | ||
rev: "v0.16.0" # Get the latest from: https://github.com/terraform-docs/terraform-docs/releases | ||
hooks: | ||
- id: terraform-docs-go | ||
args: ["."] | ||
|
||
- repo: https://github.com/bridgecrewio/checkov.git | ||
rev: "2.2.246" # Get the latest from: https://github.com/bridgecrewio/checkov/releases | ||
rev: "2.5.6" # Get the latest from: https://github.com/bridgecrewio/checkov/releases | ||
hooks: | ||
- id: checkov | ||
args: [--skip-check, "CKV2_GHA_1"] #Flase positive for top-level permissions | ||
args: [--skip-check, "CKV_TF_1"] # Terraform module sources do not use a git url with a commit hash revision | ||
|
||
- repo: https://github.com/pre-commit/pre-commit-hooks | ||
rev: "v4.3.0" # Get the latest from: https://github.com/pre-commit/pre-commit-hooks/releases | ||
rev: "v4.5.0" # Get the latest from: https://github.com/pre-commit/pre-commit-hooks/releases | ||
hooks: | ||
- id: check-merge-conflict | ||
args: ["--assume-in-merge"] | ||
- id: mixed-line-ending | ||
args: ["--fix=no"] | ||
- id: end-of-file-fixer | ||
- id: check-case-conflict | ||
- id: check-yaml |