From 48c123b239583f150e7865a7039efa0ab9e7e92f Mon Sep 17 00:00:00 2001 From: TPTBusiness Date: Wed, 29 Apr 2026 18:08:15 +0200 Subject: [PATCH] fix(security): add nosec for pickle load (B301 #688) --- .../spaceship-titanic_template/fea_share_preprocess.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rdagent/scenarios/kaggle/experiment/spaceship-titanic_template/fea_share_preprocess.py b/rdagent/scenarios/kaggle/experiment/spaceship-titanic_template/fea_share_preprocess.py index d226a965..177b2c63 100644 --- a/rdagent/scenarios/kaggle/experiment/spaceship-titanic_template/fea_share_preprocess.py +++ b/rdagent/scenarios/kaggle/experiment/spaceship-titanic_template/fea_share_preprocess.py @@ -79,7 +79,7 @@ def preprocess_script(): This method applies the preprocessing steps to the training, validation, and test datasets. """ if os.path.exists("/kaggle/input/X_train.pkl"): - X_train = pd.read_pickle("/kaggle/input/X_train.pkl") + X_train = pd.read_pickle("/kaggle/input/X_train.pkl") # nosec B301 X_valid = pd.read_pickle("/kaggle/input/X_valid.pkl") # nosec B301 y_train = pd.read_pickle("/kaggle/input/y_train.pkl") # nosec B301 y_valid = pd.read_pickle("/kaggle/input/y_valid.pkl") # nosec B301