MCPcopy
hub / github.com/openai/plugins / scan_context

Function scan_context

plugins/codex-security/scripts/workbench_db.py:2992–3002  ·  view source on GitHub ↗
(
    connection: sqlite3.Connection,
    scan_id: str,
    occurrence_id: str | None = None,
)

Source from the content-addressed store, hash-verified

2990
2991
2992def scan_context(
2993 connection: sqlite3.Connection,
2994 scan_id: str,
2995 occurrence_id: str | None = None,
2996) -> dict[str, Any]:
2997 scan = require_scan(connection, scan_id)
2998 return {
2999 "otherRunningDeepScans": other_running_deep_scans(connection, scan["id"]),
3000 "scan": scan_result(connection, scan, occurrence_id=occurrence_id),
3001 "workspace": workspace_state(connection, scan["workspace_id"]),
3002 }
3003
3004
3005def other_running_deep_scans(

Callers 11

update_progressFunction · 0.85
complete_scan_lockedFunction · 0.85
fail_scanFunction · 0.85
set_finding_triageFunction · 0.85
set_finding_remediationFunction · 0.85
mainFunction · 0.85

Calls 4

require_scanFunction · 0.85
other_running_deep_scansFunction · 0.85
scan_resultFunction · 0.85
workspace_stateFunction · 0.85

Tested by

no test coverage detected