(
connection: sqlite3.Connection,
scan_id: str,
occurrence_id: str | None = None,
)
| 2990 | |
| 2991 | |
| 2992 | def 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 | |
| 3005 | def other_running_deep_scans( |
no test coverage detected