Skip to content

Commit

Permalink
Resolving static code analysis
Browse files Browse the repository at this point in the history
  • Loading branch information
lcwiklinski-r7 committed Jan 14, 2025
1 parent cec7785 commit 0b0e681
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -330,7 +330,7 @@ def add_log_type_field(logs: list, value: str) -> list:

@staticmethod
def sha1(log: dict) -> str:
hash_ = sha1() # nosec B303
hash_ = sha1(usedforsecurity=False) # nosec B303
for key, value in log.items():
hash_.update(f"{key}{value}".encode("utf-8"))
return hash_.hexdigest()
Expand Down

0 comments on commit 0b0e681

Please sign in to comment.