subprocess module call
Medium
- Category
- Dangerous Code Execution
- Content
log_path = workspace / log_rel try: completed = subprocess.run(cmd, check=False, capture_output=True, text=True) if completed.stdout or completed.stderr or completed.returncode != 0: ensure_dir(log_path.parent) body = [- Confidence
- 95% confidence
- Finding
- completed = subprocess.run(cmd, check=False, capture_output=True, text=True)
