diff --git a/recipe-4/policy.rego b/recipe-4/policy.rego index 8db6cd8..8470731 100644 --- a/recipe-4/policy.rego +++ b/recipe-4/policy.rego @@ -6,6 +6,6 @@ match if count(reason) > 0 reason contains msg if { pkg := input.v0["package"] - re_match(".*(debug|test|tmp).*", pkg.filename) + regex.match(".*(debug|test|tmp).*", pkg.filename) msg := sprintf("Debug/test artifact detected in filename: %s", [pkg.filename]) }