Files
openclaw/src/security/audit.test-support.ts
T
Peter Steinberger e74be5d41d refactor: eliminate final wrapper-shadowing hazards (#122157)
* refactor: disambiguate wrapper-shadowed exports

* test: align renamed session and facade boundaries

* test: cover renamed runtime mock exports

* refactor: align remaining wrapper owner call sites

* test: align overlap-rebased runtime mocks

* refactor: preserve public SDK names after overlap rebase

* chore: regenerate wrapper shadowing baselines

* test: align cron model selection mocks
2026-08-11 13:34:24 -07:00

21 lines
647 B
TypeScript

import type { OpenClawConfig } from "../config/config.js";
import { runSecurityAuditCore } from "./audit.js";
import type { SecurityAuditFinding } from "./audit.types.js";
type AuditOverrides = Omit<Parameters<typeof runSecurityAuditCore>[0], "config">;
export async function collectSecurityAuditFindings(
config: OpenClawConfig,
overrides: AuditOverrides = {},
): Promise<SecurityAuditFinding[]> {
const report = await runSecurityAuditCore({
config,
sourceConfig: config,
includeFilesystem: false,
includeChannelSecurity: false,
loadPluginSecurityCollectors: false,
...overrides,
});
return report.findings;
}