From 69c50b0e9b74f7b622d2fa173c234320180e35f2 Mon Sep 17 00:00:00 2001 From: Sylwester Piskozub Date: Thu, 24 Jul 2025 16:25:24 +0200 Subject: [PATCH] fix(policy): update template Signed-off-by: Sylwester Piskozub --- .../policydevel/templates/example-policy.rego | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/app/cli/internal/policydevel/templates/example-policy.rego b/app/cli/internal/policydevel/templates/example-policy.rego index d0435f557..e19a5959f 100644 --- a/app/cli/internal/policydevel/templates/example-policy.rego +++ b/app/cli/internal/policydevel/templates/example-policy.rego @@ -30,15 +30,14 @@ default ignore := false # EO Common section, custom code below # ######################################## # Validates if the input is valid and can be understood by this policy -valid_input if { - true - # insert code here -} +valid_input := true + +# insert code here # If the input is valid, check for any policy violation here default violations := [] -#violations contains msg if { -# valid_input - # insert code here -#} +# violations contains msg if { +# valid_input +# insert code here +# } \ No newline at end of file