Skip to content

Bump actions/checkout from 4.2.0 to 4.2.1 (#139) #290

Bump actions/checkout from 4.2.0 to 4.2.1 (#139)

Bump actions/checkout from 4.2.0 to 4.2.1 (#139) #290

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@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871
- name: Setup Python
uses: actions/setup-python@f677139bbe7f9c59b41e40162b753c062f5d49a3
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