Skip to content

Commit bf6f68f

Browse files
committed
fix: explicitly set shell=False to prevent command injection
1 parent acbb087 commit bf6f68f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • python/agents/plumber-data-engineering-assistant/plumber_agent/sub_agents/monitoring_agent/tools

python/agents/plumber-data-engineering-assistant/plumber_agent/sub_agents/monitoring_agent/tools/dataproc.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,7 @@ def get_dataproc_normal_job_logs_with_id(
257257
try:
258258
# Execute the command and capture the output.
259259
result = subprocess.run(
260-
command_str, capture_output=True, text=True, check=False, shell=True
260+
command_str, capture_output=True, text=True, check=False, shell=False
261261
)
262262
logger.info(
263263
"Result for '%s' command: returncode=%s",

0 commit comments

Comments
 (0)