mirror of
https://github.com/aquasecurity/trivy-action.git
synced 2026-05-14 03:02:40 +00:00
feat: Add exit-code to Trivy args (#1)
Signed-off-by: Daniel Pacak <pacak.daniel@gmail.com>
This commit is contained in:
@@ -0,0 +1 @@
|
||||
.idea/
|
||||
+6
-1
@@ -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 }}
|
||||
|
||||
Reference in New Issue
Block a user