@intentius/terragucci 0.3.1 → 0.4.1
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/dist/report.schema.json +23 -3
- package/dist/terragucci.mjs +379 -257
- package/dist/terragucci.mjs.map +4 -4
- package/dist/types.d.ts +110 -9
- package/package.json +6 -6
package/dist/report.schema.json
CHANGED
|
@@ -151,8 +151,23 @@
|
|
|
151
151
|
"properties": {
|
|
152
152
|
"result": { "enum": ["passed", "denied", "error"] },
|
|
153
153
|
"denials": { "type": "array", "items": { "type": "string" } },
|
|
154
|
+
"rules": { "type": "array", "items": { "type": "string" }, "description": "The ids of the rules that denied, sorted (minor 10)." },
|
|
154
155
|
"warnings": { "type": "array", "items": { "type": "string" } },
|
|
155
|
-
"error": { "type": "string" }
|
|
156
|
+
"error": { "type": "string" },
|
|
157
|
+
"override": {
|
|
158
|
+
"description": "The policy override that stands for this root's plan and rules (minor 10).",
|
|
159
|
+
"type": "object",
|
|
160
|
+
"required": ["by", "at", "rules", "reason", "plan_digest", "digest", "sealed"],
|
|
161
|
+
"properties": {
|
|
162
|
+
"by": { "type": "string" },
|
|
163
|
+
"at": { "type": "string" },
|
|
164
|
+
"rules": { "type": "array", "items": { "type": "string" } },
|
|
165
|
+
"reason": { "type": "string" },
|
|
166
|
+
"plan_digest": { "type": "string" },
|
|
167
|
+
"digest": { "type": "string" },
|
|
168
|
+
"sealed": { "type": "boolean" }
|
|
169
|
+
}
|
|
170
|
+
}
|
|
156
171
|
}
|
|
157
172
|
}
|
|
158
173
|
}
|
|
@@ -168,11 +183,14 @@
|
|
|
168
183
|
"roots": { "type": "array", "items": { "type": "string" } },
|
|
169
184
|
"set_digest": { "type": ["string", "null"] },
|
|
170
185
|
"approval": { "enum": ["not-requested", "waiting", "approved", "not-required"] },
|
|
186
|
+
"review_digest": { "type": ["string", "null"], "description": "A tf-plan wave's set digest over its roots whose plan changes something, which approval: pr-review binds a review to (minor 9)." },
|
|
187
|
+
"waits": { "type": "boolean", "description": "A tf-plan wave: whether the gate will hold it when it applies (minor 9)." },
|
|
171
188
|
"gate": {
|
|
172
189
|
"type": "object",
|
|
173
190
|
"required": ["branch", "path"],
|
|
174
191
|
"properties": { "branch": { "type": "string" }, "path": { "type": "string" } }
|
|
175
|
-
}
|
|
192
|
+
},
|
|
193
|
+
"waiting_since": { "type": "string", "description": "On a waiting wave, when it began waiting for an approval of this digest (minor 8)." }
|
|
176
194
|
}
|
|
177
195
|
}
|
|
178
196
|
},
|
|
@@ -215,7 +233,9 @@
|
|
|
215
233
|
"namespace": { "type": "string" },
|
|
216
234
|
"from": { "enum": ["checkout", "base"] },
|
|
217
235
|
"denied": { "type": "array", "items": { "type": "string" } },
|
|
218
|
-
"warnings": { "type": "integer" }
|
|
236
|
+
"warnings": { "type": "integer" },
|
|
237
|
+
"overridden": { "type": "array", "items": { "type": "string" }, "description": "The denied roots an override stands for (minor 10)." },
|
|
238
|
+
"overriders": { "type": "array", "items": { "type": "string" }, "description": "Who may override a denial, from policy.override at base (minor 10)." }
|
|
219
239
|
}
|
|
220
240
|
},
|
|
221
241
|
"intent": {
|