From 677942f9f7d701e8afb3431dcf5f71e766a3709e Mon Sep 17 00:00:00 2001 From: Daniel Pacak Date: Tue, 2 Jun 2020 18:32:53 +0200 Subject: [PATCH] feat: Add exit-code to Trivy args (#1) (#2) Signed-off-by: Daniel Pacak --- action.yaml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/action.yaml b/action.yaml index 7a39bd6..4e7aba9 100644 --- a/action.yaml +++ b/action.yaml @@ -9,8 +9,15 @@ inputs: description: 'Exit code' required: false default: '0' + format: + description: 'Output format' + required: false + default: 'table' runs: using: 'docker' image: 'docker://docker.io/aquasec/trivy:latest' args: - - --exit-code ${{ inputs.exit-code }} ${{ inputs.image-ref }} + - 'image' + - '--format=${{ inputs.format }}' + - '--exit-code=${{ inputs.exit-code }}' + - '${{ inputs.image-ref }}'