subprocess module call
Medium
- Category
- Dangerous Code Execution
- Content
# Update G column (7th column) with the link update_range = f"{tab_name}!G{target_row_number}" cmd_update_sheet = ["gog", "sheets", "update", sheet_id, update_range, file_link, "--json", "--input=USER_ENTERED"] subprocess.run(cmd_update_sheet, capture_output=True, text=True, check=True) return {"success": True, "file_link": file_link, "message": f"File {final_name} processed and linked in Excel."} else: return {"success": False, "error": f"Index {excel_index} not found in Excel tab {tab_name}."}- Confidence
- 85% confidence
- Finding
- subprocess.run(cmd_update_sheet, capture_output=True, text=True, check=True)
