-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathaction.yml
46 lines (46 loc) · 1.25 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
37
38
39
40
41
42
43
44
45
46
name: "Kubernetes yaml validation by conftest"
description: "Validate Kubernetes manifests by using conftest"
author: "makocchi-git"
inputs:
file:
description: "File or directory to validate"
default: "."
required: false
output:
description: "Output format for conftest results - valid options are: [stdout json tap table]"
default: "stdout"
required: false
policy:
description: "Path to the Rego policy files directory"
default: "/policy"
required: false
trace:
description: "Enable more verbose trace output for rego queries"
default: false
required: false
update:
description: "A list of urls can be provided to the update flag, which will download before the tests run"
default: ""
required: false
comment:
description: "Send comment to pull requests"
default: true
required: false
token:
description: "Github token for api. This is required if comment is true"
default: ""
required: false
runs:
using: "docker"
image: "Dockerfile"
args:
- ${{ inputs.file }}
- ${{ inputs.output }}
- ${{ inputs.policy }}
- ${{ inputs.trace }}
- ${{ inputs.update }}
- ${{ inputs.comment }}
- ${{ inputs.token }}
branding:
icon: "check"
color: "blue"