subprocess module call
Medium
- Category
- Dangerous Code Execution
- Content
def run_eval_in_worktree(worktree_path, eval_cmd): """Run evaluation command in a worktree and return stdout.""" try: result = subprocess.run( eval_cmd, shell=True, capture_output=True, text=True, cwd=worktree_path, timeout=120 )- Confidence
- 99% confidence
- Finding
- result = subprocess.run( eval_cmd, shell=True, capture_output=True, text=True, cwd=worktree_path, timeout=120 )
