(connection: sqlite3.Connection, scan_id: str)
| 1125 | |
| 1126 | |
| 1127 | def 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 | |
| 1135 | def require_occurrence(connection: sqlite3.Connection, occurrence_id: str) -> sqlite3.Row: |
no test coverage detected