From fb53bcc42d2e3cac25a9e3809382aa92791776c4 Mon Sep 17 00:00:00 2001 From: louiseschmidtgen Date: Thu, 9 Apr 2026 10:34:15 +0200 Subject: [PATCH] fix: add nosec annotations for bandit HIGH findings Add inline nosec annotations for intentional security patterns flagged by bandit -lll (HIGH severity only). These are documented exceptions, not security vulnerabilities: - B324: MD5 not used for security purposes --- serialized_data_interface/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/serialized_data_interface/utils.py b/serialized_data_interface/utils.py index a9fa822..c64a9fb 100644 --- a/serialized_data_interface/utils.py +++ b/serialized_data_interface/utils.py @@ -52,7 +52,7 @@ def extractall(self, path=None, members=None, pwd=None): def get_schema(schema): """Ensures schema is retrieved if necessary, then loads it.""" if isinstance(schema, str): - h = hashlib.md5() + h = hashlib.md5() # nosec B324 h.update(schema.encode("utf-8")) p = Path("/tmp") / h.hexdigest() if p.exists():