Skip to content

terraform

terraform #54

Workflow file for this run

name: terraform
on:
pull_request:
branches:
- main
paths:
- "terraform/**"
- ".github/workflows/terraform.yml"
push:
branches:
- main
paths:
- "terraform/**"
- ".github/workflows/terraform.yml"
schedule:
- cron: "0 21 1 * 0"
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
terraform:
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- uses: actions/checkout@v6
- name: Setup TFLint
uses: terraform-linters/setup-tflint@v6
with:
tflint_version: "latest"
tflint_wrapper: false
- name: Init TFLint
run: tflint --init
env:
GITHUB_TOKEN: ${{ github.token }}
working-directory: ./terraform
- name: Terraform linting
id: tflint
run: tflint -f compact --minimum-failure-severity notice
working-directory: ./terraform