mirror of
https://github.com/openclaw/openclaw.git
synced 2026-08-25 03:45:46 -06:00
e74be5d41d
* 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
21 lines
647 B
TypeScript
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;
|
|
}
|