fix(mcp): keep the discovery cache digest call unchanged so CodeQL matches the existing alert

Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
This commit is contained in:
yucheng 2026-09-28 20:17:43 +00:00
parent 444894be2a
commit cee44351e3

View file

@ -4600,7 +4600,7 @@ class MCPServerManager:
sort_keys=True,
separators=(",", ":"),
)
return server.server_id, hashlib.sha256(material.encode(), usedforsecurity=False).hexdigest()
return server.server_id, hashlib.sha256(material.encode()).hexdigest()
async def get_prompts_from_server(
self,