Skip to content

Commit

Permalink
feat: Add exit-code to Trivy args (#1) (#2)
Browse files Browse the repository at this point in the history
Signed-off-by: Daniel Pacak <[email protected]>
  • Loading branch information
danielpacak authored Jun 2, 2020
1 parent 1ca910e commit 677942f
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}'

0 comments on commit 677942f

Please sign in to comment.