-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathaction.yaml
30 lines (30 loc) · 1.04 KB
/
action.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
name: 'Veinmind'
description: 'Scan images for security issues with veinmind-tools'
author: 'Veinmind Team'
branding:
color: purple
icon: check-circle
inputs:
scan-action:
description: 'Scan action for scanning security issues'
default: 'scan image'
image-ref:
description: 'image reference'
required: true
exit-code:
description: 'exit-code when specified security issue found'
required: false
default: '0'
output:
description: 'save results to output file'
required: false
default: 'report.json'
runs:
using: 'composite'
steps:
- run: docker pull veinmind/veinmind-runner:latest && docker run --rm --mount 'type=bind,source=/,target=/host,readonly,bind-propagation=rslave' -v /var/run/docker.sock:/var/run/docker.sock -v `pwd`:/tool/resource veinmind/veinmind-runner ${{ inputs.scan-action }} ${{ inputs.image-ref }} -o ${{ inputs.output }} -e ${{ inputs.exit-code }}
shell: bash
- uses: actions/upload-artifact@v2
with:
name: ${{ inputs.output }}
path: ${{ inputs.output }}