mirror of
https://github.com/ivuorinen/actions.git
synced 2026-01-26 03:23:59 +00:00
2.5 KiB
2.5 KiB
ivuorinen/actions/terraform-lint-fix
Terraform Lint and Fix
Description
Lints and fixes Terraform files with advanced validation and security checks.
Inputs
| name | description | required | default |
|---|---|---|---|
terraform-version |
Terraform version to use |
false |
latest |
tflint-version |
TFLint version to use |
false |
latest |
working-directory |
Directory containing Terraform files |
false |
. |
config-file |
Path to TFLint config file |
false |
.tflint.hcl |
fail-on-error |
Fail workflow if issues are found |
false |
true |
auto-fix |
Automatically fix issues when possible |
false |
true |
max-retries |
Maximum number of retry attempts |
false |
3 |
format |
Output format (compact, json, checkstyle, junit, sarif) |
false |
sarif |
Outputs
| name | description |
|---|---|
error-count |
Number of errors found |
fixed-count |
Number of issues fixed |
sarif-file |
Path to SARIF report file |
Runs
This action is a composite action.
Usage
- uses: ivuorinen/actions/terraform-lint-fix@main
with:
terraform-version:
# Terraform version to use
#
# Required: false
# Default: latest
tflint-version:
# TFLint version to use
#
# Required: false
# Default: latest
working-directory:
# Directory containing Terraform files
#
# Required: false
# Default: .
config-file:
# Path to TFLint config file
#
# Required: false
# Default: .tflint.hcl
fail-on-error:
# Fail workflow if issues are found
#
# Required: false
# Default: true
auto-fix:
# Automatically fix issues when possible
#
# Required: false
# Default: true
max-retries:
# Maximum number of retry attempts
#
# Required: false
# Default: 3
format:
# Output format (compact, json, checkstyle, junit, sarif)
#
# Required: false
# Default: sarif