forked from fugue/regula-action
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathaction.yaml
62 lines (62 loc) · 1.75 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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
name: 'Regula'
description: 'Run regula'
inputs:
terraform_directory:
description: |
Deprecated: use `input_path` instead.
Directory where your terraform files are located. Defaults to the root of
your repository.
required: false
input_path:
description: |
Input paths for regula. This can be a space or newline-separated list of
terraform directories, terraform JSON plans, or a cloudformation templates.
Defaults to the root of your repository. Globbing expressions can also
be used.
required: false
input_type:
description: |
Limit which input types that regula will evaluate. Defaults to "auto", which
evaluates all supported types.
Possible values are:
auto
tf-plan
cfn
tf
required: false
rego_paths:
description: |
Custom rule and configuration paths passed in to the Regula interpreter.
required: false
user_only:
description: |
Disable the builtin Regula rules. Set to "true" if you only want to run
custom rules.
required: false
default: "false"
severity:
description: |
The minimum severity where Regula will produce a non-zero exit code for failing
rules. Defaults to "unknown". Use "off" to always produce a zero exit code.
Possible values are:
unknown
informational
low
medium
high
critical
off
required: false
default: unknown
outputs:
rules_passed:
description: 'Number of passed rules'
rules_failed:
description: 'Number of failed rules'
controls_passed:
description: 'Number of passed controls'
controls_failed:
description: 'Number of failed controls'
runs:
using: 'docker'
image: 'Dockerfile'