commit 0d06a288d6cc9012905cac85657f3aa5e153fc85 Author: Eli Trop Date: Wed Dec 30 09:43:04 2020 +0200 initial commit diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..e3fb042 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,5 @@ +FROM checkmarx/kics:latest + +COPY entrypoint.sh /entrypoint.sh + +ENTRYPOINT ["/entrypoint.sh"] \ No newline at end of file diff --git a/action.yml b/action.yml new file mode 100644 index 0000000..d53cdba --- /dev/null +++ b/action.yml @@ -0,0 +1,15 @@ +# action.yml +name: 'kics Github Action' +description: 'Run kics scan against IaC projects' +inputs: + directory: + description: 'directory with infrastructure code to scan' + default: '.' + required: false + +branding: + icon: 'codesandbox' + color: 'green' +runs: + using: 'docker' + image: 'Dockerfile' \ No newline at end of file diff --git a/entrypoint.sh b/entrypoint.sh new file mode 100644 index 0000000..3c2c28f --- /dev/null +++ b/entrypoint.sh @@ -0,0 +1,3 @@ +#!/bin/sh -l + +./app/bin/kics -p $INPUT_DIRECTORY \ No newline at end of file