(connection: sqlite3.Connection, occurrence_id: str)
| 2054 | |
| 2055 | |
| 2056 | def require_finding_open(connection: sqlite3.Connection, occurrence_id: str) -> None: |
| 2057 | triage = connection.execute( |
| 2058 | "SELECT status FROM finding_triage WHERE occurrence_id = ?", |
| 2059 | (occurrence_id,), |
| 2060 | ).fetchone() |
| 2061 | if triage is not None and triage["status"] == "closed": |
| 2062 | raise SystemExit("Reopen this finding before requesting remediation.") |
| 2063 | |
| 2064 | |
| 2065 | def request_finding_remediation( |
no outgoing calls
no test coverage detected