From bc82ddbde64b17c845ff5d173b4047b057c0bd22 Mon Sep 17 00:00:00 2001 From: TPTBusiness Date: Wed, 29 Apr 2026 18:06:17 +0200 Subject: [PATCH] fix(security): add nosec for pickle load (B301 #689) --- .../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 cd9258fc..d226a965 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 @@ -80,7 +80,7 @@ def preprocess_script(): """ if os.path.exists("/kaggle/input/X_train.pkl"): X_train = pd.read_pickle("/kaggle/input/X_train.pkl") - X_valid = pd.read_pickle("/kaggle/input/X_valid.pkl") + 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 X_test = pd.read_pickle("/kaggle/input/X_test.pkl")