From 1ca910e62d608a16f4c83cb379005547d08649f2 Mon Sep 17 00:00:00 2001 From: Daniel Pacak Date: Tue, 2 Jun 2020 18:09:34 +0200 Subject: [PATCH] feat: Add exit-code to Trivy args (#1) Signed-off-by: Daniel Pacak --- .gitignore | 1 + action.yaml | 7 ++++++- 2 files changed, 7 insertions(+), 1 deletion(-) create mode 100644 .gitignore diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..9f11b75 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.idea/ diff --git a/action.yaml b/action.yaml index e4a80cf..7a39bd6 100644 --- a/action.yaml +++ b/action.yaml @@ -4,8 +4,13 @@ author: 'Daniel Pacak' inputs: image-ref: # Docker image reference, e.g. alpine:3.10.2 description: 'Docker image reference' + required: true + exit-code: + description: 'Exit code' + required: false + default: '0' runs: using: 'docker' image: 'docker://docker.io/aquasec/trivy:latest' args: - - ${{ inputs.image-ref }} + - --exit-code ${{ inputs.exit-code }} ${{ inputs.image-ref }}