Potential fix for code scanning alert no. 98: Use of a broken or weak cryptographic algorithm (#8265)
Some checks are pending
CI / uitest (push) Waiting to run
CI / uitest-pg (push) Waiting to run
CI / build (push) Waiting to run
CI / svelte-check (push) Blocked by required conditions
CI / formatting (push) Blocked by required conditions
CI / test (push) Blocked by required conditions
CI / uitest-qms (push) Waiting to run
CI / uitest-workspaces (push) Waiting to run
CI / docker-build (push) Blocked by required conditions
CI / dist-build (push) Blocked by required conditions

Signed-off-by: Andrey Sobolev <haiodo@users.noreply.github.com>
Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
This commit is contained in:
Andrey Sobolev 2025-03-18 23:01:37 +07:00 committed by GitHub
parent 3c0d2a9756
commit 31312147ed
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -53,7 +53,7 @@ async function sendJson (
// Calculate ETag
let body: any = JSON.stringify(result, rpcJSONReplacer)
const etag = createHash('sha1').update(body).digest('hex')
const etag = createHash('sha256').update(body).digest('hex')
const headers: OutgoingHttpHeaders = {
...(extraHeaders ?? {}),
'Content-Type': 'application/json',