subprocess module call
Medium
- Category
- Dangerous Code Execution
- Content
if action_type == "commit_message": # Get git diff import subprocess result = subprocess.run( ['git', 'diff', '--cached'], cwd=repo_path, capture_output=True,- Confidence
- 84% confidence
- Finding
- result = subprocess.run( ['git', 'diff', '--cached'], cwd=repo_path, capture_output=True, text=True
