Skip to content

Commit

Permalink
feat: Added validations for terraform code
Browse files Browse the repository at this point in the history
  • Loading branch information
ciro-mota committed Nov 17, 2023
1 parent 562fc0a commit 7382efe
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/check-terraform.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Check Terraform code

on:
push:

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@v2
with:
terraform_version: "1.6.2"

- name: Validate Terraform configuration
run: terraform validate

- name: Format Terraform code
run: terraform fmt -check -recursive

- name: Check code with tfsec
uses: aquasecurity/[email protected]

0 comments on commit 7382efe

Please sign in to comment.