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:
Anso
2026-07-11 19:26:26 -04:00
committed by GitHub
parent ce699864c1
commit e7ac496009
10 changed files with 481 additions and 99 deletions
+8 -1
View File
@@ -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 {