Skip to content
This repository was archived by the owner on Oct 4, 2024. It is now read-only.

Setup terraform-quality workflow#9

Open
padok-enabler-github-app[bot] wants to merge 1 commit intomainfrom
padok-enabler-app/terraform-quality-workflow-setup
Open

Setup terraform-quality workflow#9
padok-enabler-github-app[bot] wants to merge 1 commit intomainfrom
padok-enabler-app/terraform-quality-workflow-setup

Conversation

@padok-enabler-github-app
Copy link

This PR adds a terraform-quality workflow to this Terraform repository.

This workflow runs on every PR to default branch and checks the quality of the Terraform code. It runs several linters and static analysis tools on Terraform code.

It is a reusable workflow stored in padok-team/github-workflows repository.

tflint configuration

Since the v0.40.0 release, tflint plugins such as aws or gcp must be declared in the .tflint.hcl file, your workflow will fail otherwise.

Here are common configurations for the most used providers:

  • AWS: tflint-ruleset-aws plugin

    // .tflint.hcl
    plugin "aws" {
        enabled = true
        version = "0.21.1"
        source  = "github.com/terraform-linters/tflint-ruleset-aws"
    }
    
  • GCP: tflint-ruleset-google plugin

    // .tflint.hcl
    plugin "google" {
        enabled = true
        version = "0.22.1"
        source  = "github.com/terraform-linters/tflint-ruleset-google"
    }
  • Azure: tflint-ruleset-azurerm plugin

    // .tflint.hcl
    plugin "azurerm" {
        enabled = true
        version = "0.20.0"
        source  = "github.com/terraform-linters/tflint-ruleset-azurerm"
    }

🤖 This PR has automatically been opened by Padok Enabler GitHub App (source).

Simply close it if you are not interested.

If you encounter any issues, please contact us at #interne-library-enablers on Slack.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants