Skip to content

.github/workflows/ci.yml #328

.github/workflows/ci.yml

.github/workflows/ci.yml #328

Workflow file for this run

on: push
permissions:
contents: read
jobs:
validate:
runs-on: ubuntu-latest
steps:
- uses: step-security/harden-runner@0080882f6c36860b6ba35c610c98ce87d4e2f26f # v2.10.2
with:
disable-sudo: true
egress-policy: block
allowed-endpoints: >
api.github.com:443
checkpoint-api.hashicorp.com:443
files.pythonhosted.org:443
github.com:443
objects.githubusercontent.com:443
pypi.org:443
releases.hashicorp.com:443
- name: Checkout
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
- name: Setup Python
uses: actions/setup-python@0b93645e9fea7318ecaed2b359559ac225c90a2b
with:
python-version: 3.10.6
- name: Install cfn-lint
run: pip install cfn-lint==0.85.1
- name: Setup Terraform
uses: hashicorp/setup-terraform@b9cd54a3c349d3f38e8881555d616ced269862dd
with:
terraform_version: 1.3.4
- name: Setup tflint
uses: terraform-linters/setup-tflint@8093687ecc9dcbfa88d07c103ad4176739a7287e
- name: Run terraform fmt
run: terraform fmt -check -recursive ./terraform
- name: Run tflint
run: |
pushd terraform
tflint --recursive
popd
- name: Run cfn-lint
run: cfn-lint -i W3045,E3030 -- cloudformation/*.yml