-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathaction.yml
36 lines (36 loc) · 1 KB
/
action.yml
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
31
32
33
34
35
36
name: 'Vilicus Scan'
description: 'Scans container images for vulnerabilities using Vilicus'
author: 'Ederson Brilhante'
inputs:
image:
description: 'image reference'
required: true
template:
description: 'template output'
required: false
default: /opt/vilicus/contrib/sarif.tpl
config:
description: 'config file'
required: false
default: /opt/vilicus/configs/conf.yaml
output:
description: 'output file name'
required: false
default: results.sarif
runs:
using: "composite"
steps:
- id: scan
run: |
wget -O ${{ github.action_path }}/job.sh https://raw.githubusercontent.com/edersonbrilhante/vilicus/develop/scripts/run-job.sh
chmod +x ${{ github.action_path }}/job.sh
${{ github.action_path }}/job.sh
env:
IMAGE: ${{ inputs.image }}
TEMPLATE: ${{ inputs.template }}
CONFIG: ${{ inputs.config }}
OUTPUT: /artifacts/${{ inputs.output }}
shell: bash
branding:
icon: 'shield'
color: 'purple'