mirror of
https://github.com/tofuutils/pre-commit-opentofu.git
synced 2025-10-15 17:38:54 +02:00
feat: rename pre-commit-terraform to pre-commit-opentofu, pt III
This commit is contained in:
parent
2e537a9cd4
commit
233f6c6c8b
18 changed files with 103 additions and 103 deletions
|
|
@ -1,16 +1,16 @@
|
|||
- id: infracost_breakdown
|
||||
name: Infracost breakdown
|
||||
description: Check terraform infrastructure cost
|
||||
description: Check OpenTofu infrastructure cost
|
||||
entry: hooks/infracost_breakdown.sh
|
||||
language: script
|
||||
require_serial: true
|
||||
files: \.(tf(vars)?|hcl)$
|
||||
exclude: \.terraform\/.*$
|
||||
|
||||
- id: terraform_fmt
|
||||
name: Terraform fmt
|
||||
description: Rewrites all Terraform configuration files to a canonical format.
|
||||
entry: hooks/terraform_fmt.sh
|
||||
- id: tofu_fmt
|
||||
name: OpenTofu fmt
|
||||
description: Rewrites all OpenTofu configuration files to a canonical format.
|
||||
entry: hooks/tofu_fmt.sh
|
||||
language: script
|
||||
files: (\.tf|\.tfvars)$
|
||||
exclude: \.terraform\/.*$
|
||||
|
|
@ -42,27 +42,27 @@
|
|||
files: (\.tf)$
|
||||
exclude: \.terraform\/.*$
|
||||
|
||||
- id: terraform_validate
|
||||
name: Terraform validate
|
||||
description: Validates all Terraform configuration files.
|
||||
- id: tofu_validate
|
||||
name: OpenTofu validate
|
||||
description: Validates all OpenTofu configuration files.
|
||||
require_serial: true
|
||||
entry: hooks/terraform_validate.sh
|
||||
entry: hooks/tofu_validate.sh
|
||||
language: script
|
||||
files: (\.tf|\.tfvars)$
|
||||
exclude: \.terraform\/.*$
|
||||
|
||||
- id: terraform_providers_lock
|
||||
name: Lock terraform provider versions
|
||||
name: Lock OpenTofu provider versions
|
||||
description: Updates provider signatures in dependency lock files.
|
||||
require_serial: true
|
||||
entry: hooks/terraform_providers_lock.sh
|
||||
entry: hooks/tofu_providers_lock.sh
|
||||
language: script
|
||||
files: (\.terraform\.lock\.hcl)$
|
||||
exclude: \.terraform\/.*$
|
||||
|
||||
- id: terraform_tflint
|
||||
name: Terraform validate with tflint
|
||||
description: Validates all Terraform configuration files with TFLint.
|
||||
name: OpenTofu validate with tflint
|
||||
description: Validates all OpenTofu configuration files with TFLint.
|
||||
require_serial: true
|
||||
entry: hooks/terraform_tflint.sh
|
||||
language: script
|
||||
|
|
@ -86,16 +86,16 @@
|
|||
exclude: \.terraform\/.*$
|
||||
|
||||
- id: terraform_tfsec
|
||||
name: Terraform validate with tfsec (deprecated, use "terraform_trivy")
|
||||
description: Static analysis of Terraform templates to spot potential security issues.
|
||||
name: OpenTofu validate with tfsec (deprecated, use "terraform_trivy")
|
||||
description: Static analysis of OpenTofu templates to spot potential security issues.
|
||||
require_serial: true
|
||||
entry: hooks/terraform_tfsec.sh
|
||||
files: \.tf(vars)?$
|
||||
language: script
|
||||
|
||||
- id: terraform_trivy
|
||||
name: Terraform validate with trivy
|
||||
description: Static analysis of Terraform templates to spot potential security issues.
|
||||
name: OpenTofu validate with trivy
|
||||
description: Static analysis of OpenTofu templates to spot potential security issues.
|
||||
require_serial: true
|
||||
entry: hooks/terraform_trivy.sh
|
||||
files: \.tf(vars)?$
|
||||
|
|
@ -103,7 +103,7 @@
|
|||
|
||||
- id: checkov
|
||||
name: checkov (deprecated, use "terraform_checkov")
|
||||
description: Runs checkov on Terraform templates.
|
||||
description: Runs checkov on OpenTofu templates.
|
||||
entry: checkov -d .
|
||||
language: python
|
||||
pass_filenames: false
|
||||
|
|
@ -112,10 +112,10 @@
|
|||
exclude: \.terraform\/.*$
|
||||
require_serial: true
|
||||
|
||||
- id: terraform_checkov
|
||||
- id: tofu_checkov
|
||||
name: Checkov
|
||||
description: Runs checkov on Terraform templates.
|
||||
entry: hooks/terraform_checkov.sh
|
||||
description: Runs checkov on OpenTofu templates.
|
||||
entry: hooks/tofu_checkov.sh
|
||||
language: script
|
||||
always_run: false
|
||||
files: \.tf$
|
||||
|
|
@ -124,7 +124,7 @@
|
|||
|
||||
- id: terraform_wrapper_module_for_each
|
||||
name: Terraform wrapper with for_each in module
|
||||
description: Generate Terraform wrappers with for_each in module.
|
||||
description: Generate OpenTofu wrappers with for_each in module.
|
||||
entry: hooks/terraform_wrapper_module_for_each.sh
|
||||
language: script
|
||||
pass_filenames: false
|
||||
|
|
@ -135,7 +135,7 @@
|
|||
|
||||
- id: terrascan
|
||||
name: terrascan
|
||||
description: Runs terrascan on Terraform templates.
|
||||
description: Runs terrascan on OpenTofu templates.
|
||||
language: script
|
||||
entry: hooks/terrascan.sh
|
||||
files: \.tf$
|
||||
|
|
@ -144,7 +144,7 @@
|
|||
|
||||
- id: tfupdate
|
||||
name: tfupdate
|
||||
description: Runs tfupdate on Terraform templates.
|
||||
description: Runs tfupdate on OpenTofu templates.
|
||||
language: script
|
||||
entry: hooks/tfupdate.sh
|
||||
args:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue