commands: implement policy test command

Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
This commit is contained in:
Tonis Tiigi
2026-01-14 10:31:12 -08:00
parent 32b6b75478
commit c6ecdc08cf
7 changed files with 1225 additions and 11 deletions
+5
View File
@@ -15,6 +15,11 @@ type Input struct {
Git *Git `json:"git,omitempty"`
}
type Decision struct {
Allow *bool `json:"allow,omitempty"`
DenyMessages []string `json:"deny_msg,omitempty"`
}
type Env struct {
Args map[string]*string `json:"args,omitempty"`
Labels map[string]string `json:"labels,omitempty"`