Last active
May 23, 2022 07:01
-
-
Save weeyin83/f08db7ee19689738d3760165c57c4f81 to your computer and use it in GitHub Desktop.
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
# This is a basic workflow to help you get started with Actions | |
name: Lint Test CFN templates | |
# Controls when the workflow will run | |
on: | |
# Triggers the workflow on push or pull request events but only for the main branch | |
push: | |
branches: [main] | |
pull_request: | |
branches: [main] | |
# Allows you to run this workflow manually from the Actions tab | |
workflow_dispatch: | |
# This workflow runs all the templates through cfn-lint and cfn_nag | |
jobs: | |
Cloudformation-checker: | |
name: Check linting and security concerns | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: cfn-lint-action | |
uses: ScottBrenner/cfn-lint-action@v2.2.3 | |
with: | |
args: "*.yaml" | |
- name: Stelligent cfn_nag | |
uses: stelligent/cfn_nag@v0.8.6 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment