From c995ea2a4e2dd961a058222c6ed31bf4dc3f30e6 Mon Sep 17 00:00:00 2001 From: Francis Charette Migneault Date: Fri, 13 Dec 2024 19:41:55 -0500 Subject: [PATCH] disable security check for non-security related use of SHA1 --- weaver/provenance.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/weaver/provenance.py b/weaver/provenance.py index 62c52ad3b..f6e24bb3a 100644 --- a/weaver/provenance.py +++ b/weaver/provenance.py @@ -217,7 +217,7 @@ def sha1_uuid(document, identifier): Generate a prefixed SHA1 hash from the identifier value. """ sha1_ns = document._namespaces[cwl_prov_const.DATA] - sha1_id = f"{sha1_ns.prefix}:{hashlib.sha1(identifier.encode()).hexdigest()}" + sha1_id = f"{sha1_ns.prefix}:{hashlib.sha1(identifier.encode()).hexdigest()}" # nosec: B324 return sha1_id def initialize_provenance(self, full_name, host_provenance, user_provenance, orcid, fsaccess, run_uuid=None):