From 56805c780f46c4b11774fa299fe7ff4061ecdd90 Mon Sep 17 00:00:00 2001 From: w4ffl35 <25737761+w4ffl35@users.noreply.github.com> Date: Thu, 9 May 2024 08:07:00 -0600 Subject: [PATCH] add darklock lists bump defendatron and facehuggershield versions --- src/facehuggershield/huggingface/__init__.py | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/src/facehuggershield/huggingface/__init__.py b/src/facehuggershield/huggingface/__init__.py index 371e9e2..6a4ad40 100644 --- a/src/facehuggershield/huggingface/__init__.py +++ b/src/facehuggershield/huggingface/__init__.py @@ -35,7 +35,14 @@ def activate( activate_shadowlogger=True, activate_darklock=True, activate_nullscream=True, - show_stdout=True + show_stdout=True, + + # darklock properites + darklock_os_whitelisted_operations: list = None, + darklock_os_whitelisted_filenames: list = None, + darklock_os_whitelisted_imports: list = None, + darklock_os_blacklisted_filenames: list = None, + darklock_os_whitelisted_directories: list = None, ): set_huggingface_environment_variables( allow_downloads=False, @@ -48,5 +55,10 @@ def activate( activate_shadowlogger=activate_shadowlogger, activate_darklock=activate_darklock, activate_nullscream=activate_nullscream, - show_stdout=show_stdout + show_stdout=show_stdout, + darklock_os_whitelisted_operations=darklock_os_whitelisted_operations, + darklock_os_whitelisted_filenames=darklock_os_whitelisted_filenames, + darklock_os_whitelisted_imports=darklock_os_whitelisted_imports, + darklock_os_blacklisted_filenames=darklock_os_blacklisted_filenames, + darklock_os_whitelisted_directories=darklock_os_whitelisted_directories, )