From 4e1ba60c6b044d060ecbd2bdd348e8a61bf94385 Mon Sep 17 00:00:00 2001 From: kevin zhao Date: Tue, 2 Dec 2025 11:10:16 -0500 Subject: [PATCH] fix rebase --- codex-rs/execpolicy/src/execpolicycheck.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/codex-rs/execpolicy/src/execpolicycheck.rs b/codex-rs/execpolicy/src/execpolicycheck.rs index 0b5e0dcafc..d26a0de126 100644 --- a/codex-rs/execpolicy/src/execpolicycheck.rs +++ b/codex-rs/execpolicy/src/execpolicycheck.rs @@ -5,6 +5,7 @@ use anyhow::Context; use anyhow::Result; use clap::Parser; +use crate::Decision; use crate::Evaluation; use crate::Policy; use crate::PolicyParser; @@ -34,7 +35,7 @@ impl ExecPolicyCheckCommand { /// Load the policies for this command, evaluate the command, and render JSON output. pub fn run(&self) -> Result<()> { let policy = load_policies(&self.policies)?; - let evaluation = policy.check(&self.command); + let evaluation = policy.check(&self.command, &|_| Decision::Allow); let json = format_evaluation_json(&evaluation, self.pretty)?; println!("{json}");