jorgex-stack 1.3.1 → 1.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +7 -5
- package/dist/cli.js +2335 -1751
- package/package.json +1 -1
- package/stack/contracts/quality-receipt.v1.schema.json +164 -0
package/package.json
CHANGED
|
@@ -0,0 +1,164 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"title": "JorgeX quality receipt v1",
|
|
4
|
+
"type": "object",
|
|
5
|
+
"additionalProperties": false,
|
|
6
|
+
"required": ["namespace", "version", "authority", "identity", "commands", "results"],
|
|
7
|
+
"properties": {
|
|
8
|
+
"namespace": {
|
|
9
|
+
"type": "string",
|
|
10
|
+
"const": "jorgex.quality.receipt"
|
|
11
|
+
},
|
|
12
|
+
"version": {
|
|
13
|
+
"type": "integer",
|
|
14
|
+
"const": 1
|
|
15
|
+
},
|
|
16
|
+
"authority": {
|
|
17
|
+
"type": "string",
|
|
18
|
+
"enum": ["local", "enforced"]
|
|
19
|
+
},
|
|
20
|
+
"identity": {
|
|
21
|
+
"type": "object",
|
|
22
|
+
"additionalProperties": false,
|
|
23
|
+
"required": ["profile", "baseSha", "headSha", "policyDigest"],
|
|
24
|
+
"properties": {
|
|
25
|
+
"profile": {
|
|
26
|
+
"type": "string",
|
|
27
|
+
"enum": ["routine", "elevated", "high", "release"]
|
|
28
|
+
},
|
|
29
|
+
"baseSha": {
|
|
30
|
+
"type": "string",
|
|
31
|
+
"pattern": "^[0-9a-fA-F]{40}$"
|
|
32
|
+
},
|
|
33
|
+
"headSha": {
|
|
34
|
+
"type": "string",
|
|
35
|
+
"pattern": "^[0-9a-fA-F]{40}$"
|
|
36
|
+
},
|
|
37
|
+
"policyDigest": {
|
|
38
|
+
"type": "string",
|
|
39
|
+
"pattern": "^[0-9a-fA-F]{64}$"
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
},
|
|
43
|
+
"commands": {
|
|
44
|
+
"type": "array",
|
|
45
|
+
"items": {
|
|
46
|
+
"type": "object",
|
|
47
|
+
"additionalProperties": false,
|
|
48
|
+
"required": [
|
|
49
|
+
"commandId",
|
|
50
|
+
"executable",
|
|
51
|
+
"argv",
|
|
52
|
+
"exitCode",
|
|
53
|
+
"durationMs",
|
|
54
|
+
"excerpt",
|
|
55
|
+
"outputDigest"
|
|
56
|
+
],
|
|
57
|
+
"properties": {
|
|
58
|
+
"commandId": {
|
|
59
|
+
"type": "string",
|
|
60
|
+
"pattern": "\\S"
|
|
61
|
+
},
|
|
62
|
+
"executable": {
|
|
63
|
+
"type": "string",
|
|
64
|
+
"pattern": "\\S"
|
|
65
|
+
},
|
|
66
|
+
"argv": {
|
|
67
|
+
"type": "array",
|
|
68
|
+
"items": {
|
|
69
|
+
"type": "string"
|
|
70
|
+
}
|
|
71
|
+
},
|
|
72
|
+
"exitCode": {
|
|
73
|
+
"type": "integer"
|
|
74
|
+
},
|
|
75
|
+
"durationMs": {
|
|
76
|
+
"type": "number",
|
|
77
|
+
"minimum": 0
|
|
78
|
+
},
|
|
79
|
+
"excerpt": {
|
|
80
|
+
"type": "string",
|
|
81
|
+
"maxLength": 512
|
|
82
|
+
},
|
|
83
|
+
"outputDigest": {
|
|
84
|
+
"type": "string",
|
|
85
|
+
"pattern": "^[0-9a-fA-F]{64}$"
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
},
|
|
90
|
+
"results": {
|
|
91
|
+
"type": "array",
|
|
92
|
+
"items": {
|
|
93
|
+
"type": "object",
|
|
94
|
+
"additionalProperties": false,
|
|
95
|
+
"required": ["controlId", "status"],
|
|
96
|
+
"properties": {
|
|
97
|
+
"controlId": {
|
|
98
|
+
"type": "string",
|
|
99
|
+
"pattern": "\\S"
|
|
100
|
+
},
|
|
101
|
+
"status": {
|
|
102
|
+
"type": "string",
|
|
103
|
+
"enum": ["pass", "fail", "incomplete", "not-applicable"]
|
|
104
|
+
},
|
|
105
|
+
"evidence": {
|
|
106
|
+
"type": "string"
|
|
107
|
+
},
|
|
108
|
+
"reason": {
|
|
109
|
+
"type": "string"
|
|
110
|
+
}
|
|
111
|
+
},
|
|
112
|
+
"if": {
|
|
113
|
+
"properties": {
|
|
114
|
+
"status": {
|
|
115
|
+
"const": "pass"
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
},
|
|
119
|
+
"then": {
|
|
120
|
+
"required": ["evidence"],
|
|
121
|
+
"properties": {
|
|
122
|
+
"evidence": {
|
|
123
|
+
"pattern": "\\S"
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
},
|
|
129
|
+
"provenance": {
|
|
130
|
+
"type": "object",
|
|
131
|
+
"additionalProperties": false,
|
|
132
|
+
"required": ["issuer", "executionId", "evidenceLocator", "evidenceDigest"],
|
|
133
|
+
"properties": {
|
|
134
|
+
"issuer": {
|
|
135
|
+
"type": "string",
|
|
136
|
+
"pattern": "\\S"
|
|
137
|
+
},
|
|
138
|
+
"executionId": {
|
|
139
|
+
"type": "string",
|
|
140
|
+
"pattern": "\\S"
|
|
141
|
+
},
|
|
142
|
+
"evidenceLocator": {
|
|
143
|
+
"type": "string",
|
|
144
|
+
"format": "uri",
|
|
145
|
+
"pattern": "^https?://\\S+$"
|
|
146
|
+
},
|
|
147
|
+
"evidenceDigest": {
|
|
148
|
+
"type": "string",
|
|
149
|
+
"pattern": "^[0-9a-fA-F]{64}$"
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
},
|
|
154
|
+
"if": {
|
|
155
|
+
"properties": {
|
|
156
|
+
"authority": {
|
|
157
|
+
"const": "enforced"
|
|
158
|
+
}
|
|
159
|
+
}
|
|
160
|
+
},
|
|
161
|
+
"then": {
|
|
162
|
+
"required": ["provenance"]
|
|
163
|
+
}
|
|
164
|
+
}
|