Fix validation error 🙈 #268
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: "Validate Module" | |
on: [push, pull_request] | |
permissions: | |
contents: read | |
pull-requests: write | |
jobs: | |
terraform: | |
name: Terraform Validation | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Repository | |
uses: actions/checkout@v2 | |
- name: Setup Terraform | |
uses: hashicorp/[email protected] | |
- name: Run fmt | |
run: terraform fmt -diff -check -no-color -recursive | |
- name: Run init | |
run: terraform init | |
- name: Run validate | |
run: terraform validate -no-color | |
- uses: terraform-linters/[email protected] | |
name: Setup TFLint | |
with: | |
tflint_version: v0.33.1 | |
- name: Init TFLint | |
run: tflint --init | |
- name: Run TFLint | |
run: tflint -f compact | |
- name: tfsec | |
uses: aquasecurity/[email protected] | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} |