This GitHub Action validates CloudFormation yaml/json templates using CloudFormation Linter. It is similar to cfn-lint-action, but with reviewdog on pull requests to improve code review experience.
Required reviewdog requires a GitHub token. The default value is '${{ secrets.github_token }}
'.
Optional. Tool name to use for reviewdog reporter. Useful when running multiple actions with different config.
Optional. Report level for reviewdog [info
, warning
, error
].
It's same as -level
flag of reviewdog.
Reporter of reviewdog command [github-pr-check
, github-pr-review
].
The default value is github-pr-check
.
Optional. Filtering mode for the reviewdog command [added
,diff_context
,file
,nofilter
]. Default is added
.
Optional. Exit code for reviewdog when errors are found [true
,false
]. Default is false
.
Optional. Additional reviewdog flags. The default is "".
Optional. the arguments for cfn-lint. The default is "".
Optional. Directory to run the action on, from the repo root. The default is . ( root of the repository).
There is no output.
- name: minimum example
uses: shogo82148/actions-cfn-lint@v1
cfn_lint_args: "**/*.yaml **/*.yml **/*.json"
See .github/workflows/build.yml for more examples.
args
input is removed. usecfn_lint_args
instead of it.- the default of
cfn_lint_args
is now""
. To have the same behavior as v1, please specify"**/*.yaml **/*.yml **/*.json"
.