subprocess module call
Medium
- Category
- Dangerous Code Execution
- Content
console.print(f"📦 [cyan]Klone Repository:[/cyan] {repo_url}...") try: # depth 1 for performance, list for security subprocess.run(["git", "clone", "--depth", "1", repo_url, str(cache_dir)], check=True, capture_output=True, text=True) console.print(f"✓ Repository erfolgreich in den Cache geladen.") except Exception as e: console.print(f"[bold red]Fehler beim Klonen:[/bold red] {e}")- Confidence
- 80% confidence
- Finding
- subprocess.run(["git", "clone", "--depth", "1", repo_url, str(cache_dir)], check=True, capture_output=True, text=True)
