-
Notifications
You must be signed in to change notification settings - Fork 2
/
action.yml
37 lines (37 loc) · 929 Bytes
/
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
37
name: ControlPlane Kubesec
description: Scans k8s yaml with kubesec
author: ControlPlane
branding:
icon: shield
color: white
inputs:
input:
description: The file to scan
required: true
default: ""
format:
description: "Set output format (json, template)"
required: false
default: json
template:
description: Use an existing template for rendering output (templates/sarif.tpl)
required: false
default: ""
output:
description: Writes results to a file with the specified file name
required: false
default: ""
exit-code:
description: "exit code when vulnerabilities were found"
required: false
default: "2"
runs:
using: docker
image: ./Dockerfile
args:
- scan
- "--format=${{ inputs.format }}"
- "--template=${{ inputs.template }}"
- "--output=${{ inputs.output }}"
- "--exit-code=${{ inputs.exit-code }}"
- ${{ inputs.input }}