Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
7991a69583 | ||
|
|
677942f9f7 |
+12
-5
@@ -1,16 +1,23 @@
|
|||||||
name: 'Trivy Vulnerability Scanner'
|
name: 'Trivy Vulnerability Scanner'
|
||||||
description: 'Scan container image for vulnerabilities with Trivy'
|
description: 'Scan container image for vulnerabilities with Trivy'
|
||||||
author: 'Daniel Pacak'
|
author: 'Aqua Security'
|
||||||
inputs:
|
inputs:
|
||||||
image-ref: # Docker image reference, e.g. alpine:3.10.2
|
image-ref:
|
||||||
description: 'Docker image reference'
|
description: 'image reference'
|
||||||
required: true
|
required: true
|
||||||
exit-code:
|
exit-code:
|
||||||
description: 'Exit code'
|
description: 'exit code when vulnerabilities were found'
|
||||||
required: false
|
required: false
|
||||||
default: '0'
|
default: '0'
|
||||||
|
format:
|
||||||
|
description: 'output format (table, json)'
|
||||||
|
required: false
|
||||||
|
default: 'table'
|
||||||
runs:
|
runs:
|
||||||
using: 'docker'
|
using: 'docker'
|
||||||
image: 'docker://docker.io/aquasec/trivy:latest'
|
image: 'docker://docker.io/aquasec/trivy:latest'
|
||||||
args:
|
args:
|
||||||
- --exit-code ${{ inputs.exit-code }} ${{ inputs.image-ref }}
|
- 'image'
|
||||||
|
- '--format=${{ inputs.format }}'
|
||||||
|
- '--exit-code=${{ inputs.exit-code }}'
|
||||||
|
- '${{ inputs.image-ref }}'
|
||||||
|
|||||||
Reference in New Issue
Block a user