renovate/lib/types/vulnerability-alert.ts

24 lines
740 B
TypeScript
Raw Normal View History

export interface VulnerabilityPackage {
ecosystem: 'MAVEN' | 'NPM' | 'NUGET' | 'PIP' | 'RUBYGEMS' | string;
name: string;
}
export interface SecurityVulnerability {
firstPatchedVersion?: { identifier: string };
package: VulnerabilityPackage;
vulnerableVersionRange: string;
}
export interface SecurityAdvisory {
description?: string;
identifiers?: { type: string; value: string }[];
references: { url: string }[];
severity: 'HIGH' | 'MODERATE' | string;
}
export interface VulnerabilityAlert {
dismissReason?: string | null;
securityAdvisory: SecurityAdvisory;
securityVulnerability: SecurityVulnerability;
vulnerableManifestFilename: string;
vulnerableManifestPath: string;
vulnerableRequirements?: string;
}