renovate/lib/types/vulnerability-alert.ts
Michael Kriese 00c56d8bde
chore: fix types (#5904)
* chore: fix types

* fix more types

* chore: mote fixes

* fix frmat

* chore: fix tests

* chore: fix type

* chore: cleanup

* chore: cleanup

Co-authored-by: Rhys Arkins <rhys@arkins.net>
2020-05-07 10:23:45 +02:00

23 lines
740 B
TypeScript

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;
}