The clowdhaus/terraform-composite-actions/pre-commit
action will install the following tools which are intended to support the pre-commit hooks used within Terraform modules:
- terraform using provided
terraform-version
input - pre-commit
- tflint
- terraform-docs using provided
terraform-docs-version
input - hcledit when
install-hcledit
istrue
(andhcledit-version
to support) - tfsec
jobs:
pre-commit:
name: Pre-commit hooks execute
runs-on: ubuntu-latest
steps:
- name: Sign AWS Lambda artifact
uses: clowdhaus/terraform-composite-actions/pre-commit@main
with:
terraform-version: 1.2.0
terraform-docs-version: v16.0.0
terraform-architecture: amd64
install-hcledit: true
hcledit-version: 0.2.3
args: "--all-files --color always --show-diff-on-failure"