execpolicy2 core integration

This commit is contained in:
kevin zhao
2025-11-17 22:07:36 -08:00
parent 2c87ca8c68
commit e35cbb7acf
3 changed files with 31 additions and 6 deletions

View File

@@ -296,7 +296,7 @@ fn strictest_decision_wins_across_matches() {
let policy_src = r#"
prefix_rule(
pattern = ["git"],
decision = "allow",
decision = "prompt",
)
prefix_rule(
pattern = ["git", "commit"],
@@ -316,7 +316,7 @@ prefix_rule(
matched_rules: vec![
RuleMatch::PrefixRuleMatch {
matched_prefix: tokens(&["git"]),
decision: Decision::Allow,
decision: Decision::Prompt,
},
RuleMatch::PrefixRuleMatch {
matched_prefix: tokens(&["git", "commit"]),