-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathschema.cue
152 lines (121 loc) · 2.92 KB
/
schema.cue
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
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
//// Definitions ////
import (
"time"
)
#URL: =~"^https?://[^\\s]+$"
#Email: =~"^[A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+\\.[A-Za-z]{2,}$"
#Date: time.Format("2006-01-02")
#Assessment: {
comment: string
name?: string
evidence?: #URL
date?: #Date
}
#Attestation: {
name: string
location: #URL
"predicate-uri": string
comment?: string
}
#Contact: {
name: string
primary: bool
affiliation?: string
email?: #Email
social?: string
}
#License: {
url: #URL
expression: string
}
#Link: {
uri: string
comment: string
}
//// Schema ////
header: {
"last-reviewed": #Date
"last-updated": #Date
"schema-version": string
url: #URL
comment?: string
"project-si-source"?: #URL
}
project?: {
name: string
homepage?: #URL
roadmap?: #URL
funding?: #URL
administrators: [...#Contact]
repositories: [...{
name: string
comment: string
url: #URL
}]
"vulnerability-reporting": {
"reports-accepted": bool
"bug-bounty-available": bool
"bug-bounty-program"?: #URL
contact?: #Contact
comment?: string
"security-policy"?: #URL
"pgp-key"?: string
"in-scope"?: [...string]
"out-of-scope"?: [...string]
}
documentation?: {
"detailed-guide"?: #URL
"code-of-conduct"?: #URL
"quickstart-guide"?: #URL
"release-process"?: #URL
"signature-verification"?: #URL
}
}
repository?: {
status: "active" | "abandoned" | "concept" | "inactive" | "moved" | "suspended" | "unsupported" | "WIP"
url: #URL
"accepts-change-request": bool
"accepts-automated-change-request": bool
"bug-fixes-only"?: bool
"no-third-party-packages"?: bool
"core-team": [...#Contact]
license: #License
security: {
assessments: {
self: #Assessment
"third-party"?: [...#Assessment]
}
champions?: [...#Contact]
tools?: [...{
name: string
type: "fuzzing" | "container" | "secret" | "SCA" | "SAST" | "other"
version?: string
comment?: string
rulesets: [...string]
integration: {
adhoc: bool
ci: bool
release: bool
}
results: {
adhoc?: #Attestation
ci?: #Attestation
release?: #Attestation
}
}]
}
documentation?: {
"contributing-guide"?: #URL
"dependency-management-policy"?: #URL
governance?: #URL
"review-policy"?: #URL
"security-policy"?: #URL
}
release?: {
"automated-pipeline": bool
"distribution-points": [...#Link]
changelog?: #URL
license?: #License
attestations?: [...#Attestation]
}
}