Skip to content

A GitHub Action to automatically lint and format Terraform code, ensuring consistent style and syntax compliance across projects.

License

Notifications You must be signed in to change notification settings

zombocoder/terraform-lint-action

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

A GitHub Action to automatically lint and format Terraform code, ensuring consistent style and syntax compliance across projects.

Resources

License

Stars

Watchers

Forks

Packages

No packages published