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

Function require_scan

plugins/codex-security/scripts/workbench_db.py:1127–1132  ·  view source on GitHub ↗
(connection: sqlite3.Connection, scan_id: str)

Source from the content-addressed store, hash-verified

1125
1126
1127def require_scan(connection: sqlite3.Connection, scan_id: str) -> sqlite3.Row:
1128 scan_id = require_uuid(scan_id, "scan-id")
1129 row = connection.execute("SELECT * FROM scans WHERE id = ?", (scan_id,)).fetchone()
1130 if row is None:
1131 raise SystemExit("Codex Security scan not found.")
1132 return row
1133
1134
1135def require_occurrence(connection: sqlite3.Connection, occurrence_id: str) -> sqlite3.Row:

Callers 15

update_progressFunction · 0.85
complete_scan_lockedFunction · 0.85
fail_scanFunction · 0.85
cancel_scanFunction · 0.85
claim_handoff_deliveryFunction · 0.85
release_handoff_deliveryFunction · 0.85
mark_handoff_deliveredFunction · 0.85
set_finding_triageFunction · 0.85
set_finding_remediationFunction · 0.85

Calls 1

require_uuidFunction · 0.90

Tested by

no test coverage detected