Skip to content

Commit

Permalink
More bandit issues, nosec added
Browse files Browse the repository at this point in the history
Signed-off-by: noopur <[email protected]>
  • Loading branch information
noopurintel committed Jan 20, 2025
1 parent 2f31d3b commit e469850
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/end_to_end/utils/federation_helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
import os
import json
import re
import subprocess
import subprocess # nosec B404
import papermill as pm
from pathlib import Path
import shutil
Expand Down Expand Up @@ -711,7 +711,7 @@ def download_data(collaborators, model_name, local_bind_path):

log.info("Downloading the data for the model. This will take some time to complete based on the data size ..")
try:
subprocess.run(f"cd {local_bind_path}; python {constants.DATA_SETUP_FILE} {len(collaborators)}", shell=True)
subprocess.run(f"cd {local_bind_path}; python {constants.DATA_SETUP_FILE} {len(collaborators)}", shell=True) # nosec B602
except Exception:
raise ex.DataSetupException(f"Failed to download data for {model_name}")

Expand Down

0 comments on commit e469850

Please sign in to comment.