fix: Check fmt #3
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Check Terraform code | |
on: | |
push: | |
paths: | |
- '**.tf' | |
workflow_dispatch: | |
inputs: | |
input: | |
description: "Manual Execution" | |
required: true | |
default: "Manual Execution" | |
jobs: | |
check-terraform: | |
name: Check Terraform code | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: checkout | |
uses: actions/checkout@v4 | |
- name: Setup Terraform | |
uses: hashicorp/setup-terraform@v3 | |
with: | |
terraform_version: "1.7.2" | |
- name: Initialize Terraform | |
run: terraform init | |
- name: Validate Terraform configuration | |
run: terraform validate | |
- name: Format Terraform code | |
run: terraform fmt -check -recursive | |
continue-on-error: true | |
- name: Check code with tfsec | |
uses: aquasecurity/[email protected] |