Skip to content

Commit 361ff71

Browse files
committed
Fix hashlib arguments
1 parent a597714 commit 361ff71

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Scripts/find_dependencies.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -322,7 +322,7 @@ def main():
322322
basename = "_".join((tables if tables else []) + (workflows if workflows else []))
323323
# Set a short file name when the full name would be longer than 255 characters.
324324
if len(basename) > 251:
325-
basename = "o2_dependencies_" + hashlib.sha1(basename.encode()).hexdigest()
325+
basename = "o2_dependencies_" + hashlib.sha1(basename.encode(), usedforsecurity=False).hexdigest()
326326
ext_graph = graph_suffix
327327
path_file_dot = basename + ".gv"
328328
path_file_graph = basename + "." + ext_graph

0 commit comments

Comments
 (0)