mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-30 10:33:36 +00:00
* Add security audit suppressions * docs: list audit suppression dangerous flag * fix(security): keep audit suppressions visible * docs(changelog): thank audit suppression contributor --------- Co-authored-by: Craig <froelich@craigs.mac.studio.froho> Co-authored-by: Peter Steinberger <steipete@gmail.com>
38 lines
803 B
TypeScript
38 lines
803 B
TypeScript
export type SecurityAuditSeverity = "info" | "warn" | "critical";
|
|
|
|
export type SecurityAuditFinding = {
|
|
checkId: string;
|
|
severity: SecurityAuditSeverity;
|
|
title: string;
|
|
detail: string;
|
|
remediation?: string;
|
|
};
|
|
|
|
export type SecurityAuditSuppressedFinding = SecurityAuditFinding & {
|
|
suppression: {
|
|
reason?: string;
|
|
};
|
|
};
|
|
|
|
export type SecurityAuditSummary = {
|
|
critical: number;
|
|
warn: number;
|
|
info: number;
|
|
};
|
|
|
|
export type SecurityAuditReport = {
|
|
ts: number;
|
|
summary: SecurityAuditSummary;
|
|
findings: SecurityAuditFinding[];
|
|
suppressedFindings?: SecurityAuditSuppressedFinding[];
|
|
deep?: {
|
|
gateway?: {
|
|
attempted: boolean;
|
|
url: string | null;
|
|
ok: boolean;
|
|
error: string | null;
|
|
close?: { code: number; reason: string } | null;
|
|
};
|
|
};
|
|
};
|