Skip to content

Instantly share code, notes, and snippets.

@weeyin83
Last active May 23, 2022 07:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save weeyin83/f08db7ee19689738d3760165c57c4f81 to your computer and use it in GitHub Desktop.
Save weeyin83/f08db7ee19689738d3760165c57c4f81 to your computer and use it in GitHub Desktop.
# 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