-
Notifications
You must be signed in to change notification settings - Fork 1
/
action.yaml
45 lines (38 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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
name: 'Kubescape Action'
author: 'rbalashevich'
description: 'GitHub action to scan given k8s manifests using kubescape by ARMO'
branding:
icon: 'upload-cloud'
color: 'blue'
inputs:
ksversion:
description: 'kubescape release to use'
required: true
default: 'v2.0.158'
path:
description: 'File or directory to run scan on'
required: false
default: ''
threshold:
description: 'Parameter to set the threshold (optional)'
required: false
default: '20'
format:
description: 'Output format (optional)'
# Supported formats: "pretty-printer","json","junit","prometheus","pdf" (default "pretty-printer")
required: false
default: 'pretty-printer'
context:
description: 'K8s cluster context (kube-context) to run scan on'
required: false
default: ''
runs:
using: 'docker'
image: 'Dockerfile'
# env: DOCKER_BUILDKIT=1
args:
- ${{ inputs.ksversion }}
- ${{ inputs.path }}
- ${{ inputs.threshold }}
- ${{ inputs.format }}
- ${{ inputs.context }}