mirror of
https://github.com/Studio-Saelix/sencho.git
synced 2026-08-12 11:47:11 +00:00
feat(security): add triage status and OpenVEX justification parity (#1615)
* feat(security): add triage status and OpenVEX justification parity Share triage options across SuppressionsPanel and the scan-sheet suppress dialog, require justification for not_affected and false_positive, and document the fields. * fix(security): use design-system Select for triage dropdowns Replace native selects so OpenVEX justification options use themed popover content instead of unreadable OS option lists in dark mode. * fix(security): keep triage justification Select controlled Pass an empty string instead of undefined so Radix Select does not flip between uncontrolled and controlled when the placeholder is shown.
This commit is contained in:
@@ -159,6 +159,13 @@ export interface VulnerabilityDetail {
|
||||
export type TriageStatus =
|
||||
| 'needs_review' | 'affected' | 'not_affected' | 'accepted' | 'fixed' | 'false_positive' | 'ignored';
|
||||
|
||||
/** OpenVEX-aligned justification codes (mirrors the backend TriageJustification). */
|
||||
export type TriageJustification =
|
||||
| 'vulnerable_code_not_in_execute_path'
|
||||
| 'vulnerable_code_not_present'
|
||||
| 'component_not_present'
|
||||
| 'inline_mitigations_already_exist';
|
||||
|
||||
export interface CveSuppression {
|
||||
id: number;
|
||||
cve_id: string;
|
||||
@@ -171,7 +178,7 @@ export interface CveSuppression {
|
||||
replicated_from_control: number;
|
||||
active: boolean;
|
||||
status?: TriageStatus;
|
||||
justification?: string | null;
|
||||
justification?: TriageJustification | null;
|
||||
}
|
||||
|
||||
export interface ScanSummary {
|
||||
|
||||
Reference in New Issue
Block a user