Skip to content

Terraform Linter

Actions
A GitHub Action to validate that Terraform files are formatted consistently
v1.0.0
Latest
Star (6)

Terraform Lint Action

A GitHub Action to automatically lint and ensure your Terraform files are formatted consistently.

Usage

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]

Inputs

This action does not require any inputs.

Example Output

The action will provide a detailed output of any files that need formatting, allowing you to correct them by running terraform fmt locally.

Contributing

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.

About

A GitHub Action to validate that Terraform files are formatted consistently
v1.0.0
Latest

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.