From 0d06a288d6cc9012905cac85657f3aa5e153fc85 Mon Sep 17 00:00:00 2001 From: Eli Trop Date: Wed, 30 Dec 2020 09:43:04 +0200 Subject: [PATCH] initial commit --- Dockerfile | 5 +++++ action.yml | 15 +++++++++++++++ entrypoint.sh | 3 +++ 3 files changed, 23 insertions(+) create mode 100644 Dockerfile create mode 100644 action.yml create mode 100644 entrypoint.sh 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