MCPcopy Index your code
hub / github.com/openai/plugins / _stable_id

Function _stable_id

plugins/codex-security/scripts/finalize_scan_contract.py:507–508  ·  view source on GitHub ↗
(prefix: str, *parts: str)

Source from the content-addressed store, hash-verified

505
506
507def _stable_id(prefix: str, *parts: str) -> str:
508 return f"{prefix}_{_sha256_text(chr(0).join(parts))[:24]}"
509
510
511def _validate_location(location: dict[str, Any], context: str) -> None:

Callers 1

_enrich_findingsFunction · 0.85

Calls 1

_sha256_textFunction · 0.85

Tested by

no test coverage detected