mirror of
https://github.com/openai/codex.git
synced 2026-10-30 19:18:49 +00:00
Use PowerShell directly in Windows sandbox test
This commit is contained in:
@@ -403,7 +403,8 @@ async fn windows_unified_exec_managed_network_enforces_deny_read() -> anyhow::Re
|
||||
|
||||
let call_id = "windows-unified-exec-managed-network-deny-read";
|
||||
let command = format!(
|
||||
r#"cmd.exe /D /C "(type "{}" 1>NUL 2>NUL && echo SECRET-READ || echo SECRET-DENIED) & type "{}""#,
|
||||
"if (Get-Content -LiteralPath '{}' -ErrorAction SilentlyContinue) {{ \
|
||||
'SECRET-READ' }} else {{ 'SECRET-DENIED' }}; Get-Content -LiteralPath '{}'",
|
||||
secret_path.display(),
|
||||
public_path.display()
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user