Skip to content

Merge branch 'main' into sync-zacbrown/readiness-checker-more-readier #283

Merge branch 'main' into sync-zacbrown/readiness-checker-more-readier

Merge branch 'main' into sync-zacbrown/readiness-checker-more-readier #283

Workflow file for this run

on: push
permissions:
contents: read
jobs:
validate:
runs-on: ubuntu-latest
steps:
- uses: step-security/harden-runner@5c7944e73c4c2a096b17a9cb74d65b6c2bbafbde # v2.9.1
with:
disable-sudo: true
egress-policy: block
allowed-endpoints: >
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@d632683dd7b4114ad314bca15554477dd762a938
- name: Setup Python
uses: actions/setup-python@39cd14951b08e74b54015e9e001cdefcf80e669f
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@19a52fbac37dacb22a09518e4ef6ee234f2d4987
- 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