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

Function published_manifest_digest

plugins/codex-security/scripts/workbench_db.py:1703–1709  ·  view source on GitHub ↗
(scan_dir: Path, manifest: dict[str, Any])

Source from the content-addressed store, hash-verified

1701
1702
1703def published_manifest_digest(scan_dir: Path, manifest: dict[str, Any]) -> str:
1704 canonical = (json.dumps(manifest, allow_nan=False, indent=2, sort_keys=True) + "\n").encode()
1705 expected = f"sha256:{hashlib.sha256(canonical).hexdigest()}"
1706 actual = scan_local_file_digest(scan_dir, ARTIFACTS["manifest"])
1707 if actual != expected:
1708 raise SystemExit("The sealed scan manifest changed while it was being published.")
1709 return expected
1710
1711
1712def require_recorded_manifest_digest(scan: sqlite3.Row, scan_dir: Path) -> None:

Callers 3

complete_scan_lockedFunction · 0.85
export_findingsFunction · 0.85

Calls 1

scan_local_file_digestFunction · 0.85

Tested by

no test coverage detected