Skip to content

sync changes from panther-labs/panther-enterprise#20509 #299

sync changes from panther-labs/panther-enterprise#20509

sync changes from panther-labs/panther-enterprise#20509 #299

Workflow file for this run

on: push
permissions:
contents: read
jobs:
validate:
runs-on: ubuntu-latest
steps:
- uses: step-security/harden-runner@91182cccc01eb5e619899d80e4e971d6181294a7 # v2.10.1
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@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