Skip to content

fix: resource_label in auto-scaling should be optional #128

fix: resource_label in auto-scaling should be optional

fix: resource_label in auto-scaling should be optional #128

name: "static analysis"
on:
pull_request:
branches:
- main
push:
branches:
- main
jobs:
validate:
name: validate
runs-on: ubuntu-latest
strategy:
matrix:
terraform: [ ~1.3.0 ]
steps:
- uses: actions/checkout@v3
- uses: actions/cache@v3
with:
path: ~/.tflint.d/plugins
key: ${{ matrix.os }}-tflint-${{ hashFiles('.tflint.hcl') }}
- uses: hashicorp/setup-terraform@v2
with:
terraform_version: ${{ matrix.terraform }}
- uses: terraform-linters/setup-tflint@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
- run: make fmt
- run: make validate
- run: make tflint
- name: Terraform security scan
uses: aquasecurity/tfsec-pr-commenter-action@v1.3.1
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
tfsec_args: '--force-all-dirs --exclude-downloaded-modules --minimum-severity HIGH'
working_dir: ''