Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
7991a69583 | ||
|
|
677942f9f7 |
17
action.yaml
17
action.yaml
@@ -1,16 +1,23 @@
|
||||
name: 'Trivy Vulnerability Scanner'
|
||||
description: 'Scan container image for vulnerabilities with Trivy'
|
||||
author: 'Daniel Pacak'
|
||||
author: 'Aqua Security'
|
||||
inputs:
|
||||
image-ref: # Docker image reference, e.g. alpine:3.10.2
|
||||
description: 'Docker image reference'
|
||||
image-ref:
|
||||
description: 'image reference'
|
||||
required: true
|
||||
exit-code:
|
||||
description: 'Exit code'
|
||||
description: 'exit code when vulnerabilities were found'
|
||||
required: false
|
||||
default: '0'
|
||||
format:
|
||||
description: 'output format (table, json)'
|
||||
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 }}'
|
||||
|
||||
Reference in New Issue
Block a user