Skip to content

terraform

terraform #123

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@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0
with:
python-version: "3.14"
architecture: "x64"
- name: Setup TFLint
uses: terraform-linters/setup-tflint@b480b8fcdaa6f2c577f8e4fa799e89e756bb7c93 # v6.2.2
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
- name: Install dependencies
run: pip install -r requirements.txt
working-directory: ./terraform
- name: Terraform analysis
run: checkov --quiet --compact
working-directory: ./terraform