diff --git a/weaver/provenance.py b/weaver/provenance.py index f6e24bb3a..d878de6cb 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()}" # nosec: B324 + sha1_id = f"{sha1_ns.prefix}:{hashlib.sha1(identifier.encode(), usedforsecurity=False).hexdigest()}" return sha1_id def initialize_provenance(self, full_name, host_provenance, user_provenance, orcid, fsaccess, run_uuid=None):