(connection: sqlite3.Connection, occurrence_id: str)
| 1133 | |
| 1134 | |
| 1135 | def require_occurrence(connection: sqlite3.Connection, occurrence_id: str) -> sqlite3.Row: |
| 1136 | occurrence_id = optional_text(occurrence_id, maximum=256) |
| 1137 | if occurrence_id is None: |
| 1138 | raise SystemExit("occurrence-id is required.") |
| 1139 | row = connection.execute( |
| 1140 | "SELECT * FROM finding_occurrences WHERE id = ?", (occurrence_id,) |
| 1141 | ).fetchone() |
| 1142 | if row is None: |
| 1143 | raise SystemExit("Codex Security finding occurrence not found.") |
| 1144 | return row |
| 1145 | |
| 1146 | |
| 1147 | def create_workspace(connection: sqlite3.Connection, args: argparse.Namespace) -> dict[str, Any]: |
no test coverage detected