forked from nowsecure/nowsecure-action
-
Notifications
You must be signed in to change notification settings - Fork 0
/
nsconfig.schema.json
95 lines (95 loc) · 2.83 KB
/
nsconfig.schema.json
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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
{
"$schema": "http://json-schema.org/draft-07/schema#",
"$id": "https://raw.githubusercontent.com/nowsecure/nowsecure-action/main/nsconfig.schema.json",
"title": "NowSecure GitHub action configuration",
"allOf": [{ "$ref": "#/$defs/filterbase" }],
"properties": {
"filters": {
"type": "object",
"additionalProperties": { "$ref": "#/$defs/filter" }
},
"configs": {
"type": "object",
"additionalProperties": { "$ref": "#/$defs/config" }
},
"key": { "$ref": "#/$defs/keyparams" },
"labels": { "$ref": "#/$defs/labels" },
"summary": { "$ref": "#/$defs/summary" }
},
"unevaluatedProperties": false,
"$defs": {
"filterbase": {
"type": "object",
"properties": {
"minimum-severity": { "$ref": "#/$defs/severity" },
"include-warnings": { "type": "boolean" },
"exclude-checks": { "$ref": "#/$defs/checklist" },
"include-checks": { "$ref": "#/$defs/checklist" }
}
},
"filter": {
"allOf": [{ "$ref": "#/$defs/filterbase" }],
"unevaluatedProperties": false
},
"filterorstring": {
"anyOf": [{ "$ref": "#/$defs/filter" }, { "type": "string" }]
},
"config": {
"type": "object",
"properties": {
"filter": { "$ref": "#/$defs/filterorstring" },
"key": { "$ref": "#/$defs/keyparams" },
"labels": { "$ref": "#/$defs/labels" },
"summary": { "$ref": "#/$defs/summary" }
},
"unevaluatedProperties": false
},
"severity": {
"type": "string",
"enum": ["critical", "high", "medium", "low", "info"]
},
"summary": {
"type": "string",
"enum": ["none", "short", "long"]
},
"checklist": {
"type": "array",
"items": { "type": "string" }
},
"keyparams": {
"type": "object",
"properties": {
"package": { "type": "boolean" },
"platform": { "type": "boolean" },
"v1-key": { "type": "string" }
},
"additionalProperties": false
},
"labellistorstring": {
"anyOf": [
{ "type": "array", "items": { "type": "string" } },
{ "type": "string" }
]
},
"labelmapping": {
"type": "object",
"properties": {
"always": { "$ref": "#/$defs/labellistorstring" },
"info": { "$ref": "#/$defs/labellistorstring" },
"warning": { "$ref": "#/$defs/labellistorstring" },
"low": { "$ref": "#/$defs/labellistorstring" },
"medium": { "$ref": "#/$defs/labellistorstring" },
"high": { "$ref": "#/$defs/labellistorstring" },
"critical": { "$ref": "#/$defs/labellistorstring" },
"category-labels": { "type": "boolean" }
},
"unevaluatedProperties": false
},
"labels": {
"anyOf": [
{ "$ref": "#/$defs/labellistorstring" },
{ "$ref": "#/$defs/labelmapping" }
]
}
}
}