POL-1431 - MSP Parent to Child Group Sync v0.1.0 #5514
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Test CloudFormation Templates | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
branches: | |
- master | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
name: checkov-action | |
strategy: | |
# Disable fast-fail to allow all template file tests to finish even if one fails | |
# Prevents needing to re-run tests to find errors in other template files | |
fail-fast: false | |
matrix: | |
# matrix.template_files is a list of template files to test | |
template_files: | |
- ./tools/cloudformation-template/FlexeraAutomationPolicies.template | |
- ./tools/cloudformation-template/FlexeraAutomationPoliciesReadOnly.template | |
- ./tools/cloudformation-template/FlexeraAutomationPoliciesSimple.template | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Set up Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: '3.x' | |
- name: Install cfn-lint | |
run: pip install cfn-lint | |
- name: Run Cloudformation Linter | |
id: cfn-lint | |
run: | | |
cfn-lint -t ${{ matrix.template_files }} | |
- name: Run Checkov action | |
id: checkov | |
uses: bridgecrewio/checkov-action@master | |
with: | |
file: ${{ matrix.template_files }} | |
quiet: true # optional: display only failed checks | |
framework: cloudformation # optional: run only on a specific infrastructure |