Terraform Linter
ActionsA GitHub Action to validate that Terraform files are formatted consistently
v1.0.0
LatestBy zombocoder
Tags
(2)A GitHub Action to automatically lint and ensure your Terraform files are formatted consistently.
To use this action in your GitHub workflow, add the following configuration to your .github/workflows/terraform-lint.yml
file:
name: Terraform Lint
on: [push, pull_request]
jobs:
terraform-lint:
runs-on: ubuntu-latest
steps:
- name: Check out repository
uses: actions/checkout@v3
- name: Lint Terraform files
uses: zombocoder/[email protected]
This action does not require any inputs.
The action will provide a detailed output of any files that need formatting, allowing you to correct them by running terraform fmt
locally.
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Terraform Linter is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.