diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 0000000..fc7aa12 --- /dev/null +++ b/.editorconfig @@ -0,0 +1,14 @@ +# EditorConfig is awesome: https://EditorConfig.org + +# top-most EditorConfig file +root = true + +[*] +charset = utf-8 +end_of_line = lf +insert_final_newline = true +trim_trailing_whitespace = true + +[*.yml] +indent_style = space +indent_size = 2 diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..e69de29 diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..a11f671 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,7 @@ +FROM ruby:2.5-alpine3.10 + +RUN gem install cfn-nag --no-format-exec + +ENTRYPOINT ["cfn_nag_scan"] + +CMD ["--help"] diff --git a/README.md b/README.md new file mode 100644 index 0000000..80a475c --- /dev/null +++ b/README.md @@ -0,0 +1,3 @@ +# GitHub Action for CFN_NAG + +This Action for [cfn-nag](https://github.com/stelligent/cfn_nag). diff --git a/action.yml b/action.yml new file mode 100644 index 0000000..c6f5cbc --- /dev/null +++ b/action.yml @@ -0,0 +1,9 @@ +name: 'cfn-nag-action' +author: 'Minchao ' +description: 'GitHub Action for cfn_nag' +branding: + icon: 'check-circle' + color: 'yellow' +runs: + using: 'docker' + image: 'Dockerfile'