tf-actions/Terraform Formatting
Format a Terraform configuration, and optionally post a code review on the pull request highlighting issues.
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stale
- License
- None
Inputs
| name | description | required | default |
|---|---|---|---|
| cli_path | Path to the cli executable to use | no | — |
| init | Run terraform init before validating | yes | true |
| recursive | Recursively format all files in the directory | yes | false |
| strict_mode | Must formatting be correct for the action to pass | yes | false |
| create_review | Create a code review with the required formatting changes | yes | false |
| working_directory | The directory to run the formatting from. Defaults to the root of the repository. | no | ${{ github.workspace }} |
| token | GitHub token to create a code review | no | ${{ github.token }} |
| api_url | GitHub API URL. Defaults to https://api.github.com | — | https://api.github.com |
Outputs
no outputs