Skip to content

Commit

Permalink
feat: Add exit-code to Trivy args (#1)
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 1a6fec9 commit 1ca910e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
.idea/
7 changes: 6 additions & 1 deletion action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}

0 comments on commit 1ca910e

Please sign in to comment.