feat: security report generation
Node.js CI / Lint and Test (push) Failing after 24s
Security Scan and Upload / Security & DefectDojo Upload (push) Successful in 1m21s

This commit is contained in:
2025-12-17 19:30:08 -08:00
parent ac3a9d9e58
commit ba46ada4c0
3 changed files with 474 additions and 1 deletions
+37
View File
@@ -0,0 +1,37 @@
/* eslint-disable @typescript-eslint/naming-convention -- interface properties match API responses. */
/**
* @copyright NHCarrigan
* @license Naomi's Public License
* @author Naomi Carrigan
*/
interface Product {
id: number;
name: string;
}
interface Finding extends Record<string, unknown> {
id: number;
title: string;
severity: "Critical" | "High" | "Medium" | "Low" | "Info";
active: boolean;
verified: boolean;
product?: Product;
}
interface DojoResponse {
count: number;
next: string | null;
previous: string | null;
results: Array<Finding>;
}
interface ProjectStats {
Critical: number;
High: number;
Medium: number;
Low: number;
Info: number;
}
export type { Product, Finding, DojoResponse, ProjectStats };