diff --git a/.pre-commit-hooks.yaml b/.pre-commit-hooks.yaml index a028149..0a318cc 100644 --- a/.pre-commit-hooks.yaml +++ b/.pre-commit-hooks.yaml @@ -15,8 +15,8 @@ files: (\.tf|\.tfvars)$ exclude: \.terraform\/.*$ -- id: terraform_docs - name: Terraform docs +- id: tofu_docs + name: OpenTofu docs description: Inserts input and output documentation into README.md (using terraform-docs). require_serial: true entry: hooks/terraform_docs.sh @@ -24,11 +24,11 @@ files: (\.tf|\.terraform\.lock\.hcl)$ exclude: \.terraform\/.*$ -- id: terraform_docs_without_aggregate_type_defaults - name: Terraform docs (without aggregate type defaults) +- id: tofu_docs_without_aggregate_type_defaults + name: OpenTofu docs (without aggregate type defaults) description: Inserts input and output documentation into README.md (using terraform-docs). Identical to terraform_docs. require_serial: true - entry: hooks/terraform_docs.sh + entry: hooks/tofu_docs.sh language: script files: (\.tf)$ exclude: \.terraform\/.*$ diff --git a/README.md b/README.md index 8efbb71..2696eda 100644 --- a/README.md +++ b/README.md @@ -261,7 +261,7 @@ There are several [pre-commit](https://pre-commit.com/) hooks to keep Terraform | `terraform_fmt` | Reformat all Terraform configuration files to a canonical format. [Hook notes](#terraform_fmt) | - | | `terraform_providers_lock` | Updates provider signatures in [dependency lock files](https://www.terraform.io/docs/cli/commands/providers/lock.html). [Hook notes](#terraform_providers_lock) | - | | `terraform_tflint` | Validates all Terraform configuration files with [TFLint](https://github.com/terraform-linters/tflint). [Available TFLint rules](https://github.com/terraform-linters/tflint/tree/master/docs/rules#rules). [Hook notes](#terraform_tflint). | `tflint` | -| `terraform_tfsec` | [TFSec](https://github.com/aquasecurity/tfsec) static analysis of terraform templates to spot potential security issues. **DEPRECATED**, use `terraform_trivy`. [Hook notes](#terraform_tfsec-deprecated) | `tfsec` | +| `terraform_tfsec` | [TFSec](https://github.com/aquasecurity/tfsec) static analysis of terraform templates to spot potential security issues. **DEPRECATED**, use `tofu_trivy`. [Hook notes](#terraform_tfsec-deprecated) | `tfsec` | | `terraform_trivy` | [Trivy](https://github.com/aquasecurity/trivy) static analysis of terraform templates to spot potential security issues. [Hook notes](#terraform_trivy) | `trivy` | | `terraform_validate` | Validates all Terraform configuration files. [Hook notes](#terraform_validate) | `jq`, only for `--retry-once-with-cleanup` flag | | `terragrunt_fmt` | Reformat all [Terragrunt](https://github.com/gruntwork-io/terragrunt) configuration files (`*.hcl`) to a canonical format. | `terragrunt` | diff --git a/hooks/terraform_checkov.sh b/hooks/tofu_checkov.sh similarity index 100% rename from hooks/terraform_checkov.sh rename to hooks/tofu_checkov.sh diff --git a/hooks/terraform_docs.sh b/hooks/tofu_docs.sh similarity index 100% rename from hooks/terraform_docs.sh rename to hooks/tofu_docs.sh diff --git a/hooks/terraform_docs_replace.py b/hooks/tofu_docs_replace.py similarity index 100% rename from hooks/terraform_docs_replace.py rename to hooks/tofu_docs_replace.py diff --git a/hooks/terraform_fmt.sh b/hooks/tofu_fmt.sh similarity index 100% rename from hooks/terraform_fmt.sh rename to hooks/tofu_fmt.sh diff --git a/hooks/terraform_providers_lock.sh b/hooks/tofu_providers_lock.sh similarity index 100% rename from hooks/terraform_providers_lock.sh rename to hooks/tofu_providers_lock.sh diff --git a/hooks/terraform_tflint.sh b/hooks/tofu_tflint.sh similarity index 100% rename from hooks/terraform_tflint.sh rename to hooks/tofu_tflint.sh diff --git a/hooks/terraform_tfsec.sh b/hooks/tofu_tfsec.sh similarity index 100% rename from hooks/terraform_tfsec.sh rename to hooks/tofu_tfsec.sh diff --git a/hooks/terraform_trivy.sh b/hooks/tofu_trivy.sh similarity index 100% rename from hooks/terraform_trivy.sh rename to hooks/tofu_trivy.sh diff --git a/hooks/terraform_validate.sh b/hooks/tofu_validate.sh similarity index 100% rename from hooks/terraform_validate.sh rename to hooks/tofu_validate.sh diff --git a/hooks/terraform_wrapper_module_for_each.sh b/hooks/tofu_wrapper_module_for_each.sh similarity index 100% rename from hooks/terraform_wrapper_module_for_each.sh rename to hooks/tofu_wrapper_module_for_each.sh