File tree Expand file tree Collapse file tree 2 files changed +24
-8
lines changed Expand file tree Collapse file tree 2 files changed +24
-8
lines changed Original file line number Diff line number Diff line change 1
- name : " Conftest"
2
- description : " Write tests against structured configuration data using Open Policy Agent "
1
+ name : " Conftest Action "
2
+ description : " Easily run Conftest, surface the results, and obtain test metrics "
3
3
branding :
4
- icon : " check"
5
- color : " green "
4
+ icon : " check-square "
5
+ color : " purple "
6
6
inputs :
7
7
files :
8
8
description : " Files and/or folders for Conftest to test (space delimited)"
9
9
required : true
10
10
policy :
11
11
description : " Where to find the policy folder or file"
12
12
default : " policy"
13
+ required : false
13
14
data :
14
15
description : " Files or folder with supplemental test data"
16
+ required : false
15
17
all-namespaces :
16
18
description : " Whether to use all namespaces in testing"
17
- default : true
19
+ default : " true"
20
+ required : false
18
21
combine :
19
22
description : " Whether to combine input files"
23
+ required : false
20
24
pull-url :
21
25
description : " URL to pull policies from"
26
+ required : false
22
27
pull-secret :
23
28
description : " Secret that allows the policies to be pulled"
29
+ required : false
24
30
add-comment :
25
31
description : " Whether or not to add a comment to the PR"
26
- default : true
32
+ default : " true"
33
+ required : false
27
34
docs-url :
28
35
description : " URL where users can find out more about the policies"
36
+ required : false
29
37
no-fail :
30
38
description : " Always returns an exit code of 0 (no error)"
39
+ required : false
31
40
gh-token :
32
41
description : " Token that allows us to post a comment in the PR"
42
+ required : false
33
43
gh-comment-url :
34
44
description : " URL of the comments for the PR"
45
+ required : false
35
46
metrics-url :
36
47
description : " URL to POST the results to for metrics"
48
+ required : false
37
49
metrics-source :
38
50
description : " Unique identifier for the source of the submission"
51
+ required : false
39
52
metrics-details :
40
53
description : " Whether to include the full test results in the metrics"
54
+ required : false
41
55
metrics-token :
42
56
description : " Bearer token for submitting metrics"
57
+ required : false
43
58
policy-id-key :
44
59
description : " Name of the key in the details object that stores the policy ID"
45
60
default : " policyID"
61
+ required : false
46
62
runs :
47
63
using : ' docker'
48
64
image : ' Dockerfile'
Original file line number Diff line number Diff line change @@ -56,8 +56,8 @@ type metricsSubmission struct {
56
56
}
57
57
58
58
type metricsSeverity struct {
59
- Count int `json:"count"`
60
- PolicyIDs []string `json:"policyIDs"`
59
+ Count int `json:"count,omitempty "`
60
+ PolicyIDs []string `json:"policyIDs,omitempty "`
61
61
}
62
62
63
63
const commentTemplate = `**Conftest has identified issues with your resources**
You can’t perform that action at this time.
0 commit comments