mirror of
https://github.com/BerriAI/litellm.git
synced 2026-10-04 02:31:27 +00:00
fix(oci): suppress CodeQL false positive on sha256_base64 (OCI HTTP signing, not password hashing)
This commit is contained in:
parent
7a4e8ecd43
commit
e34de1e7d1
1 changed files with 1 additions and 1 deletions
|
|
@ -96,7 +96,7 @@ def sha256_base64(data: bytes) -> str:
|
|||
# OCI HTTP signing specification (RSA-SHA256 request signing), not for password
|
||||
# or secret hashing. This is the correct and mandated algorithm for this purpose.
|
||||
# See: https://docs.oracle.com/en-us/iaas/Content/API/Concepts/signingrequests.htm
|
||||
digest = hashlib.sha256(data).digest()
|
||||
digest = hashlib.sha256(data).digest() # lgtm[py/weak-sensitive-data-hashing] # noqa: S324
|
||||
return base64.b64encode(digest).decode()
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue