feat: add security audit seed data with real findings from code review
All checks were successful
CI/CD / test (push) Successful in 18s
CI/CD / deploy (push) Successful in 1s

- Added seed-security.ts with comprehensive audit data for all 5 projects
- Real findings from actual code inspection: auth, CORS, rate limiting,
  error handling, dependencies, TLS certs, infrastructure
- 35 audit entries across Hammer Dashboard, Network App, Todo App, nKode,
  and Infrastructure
- Fixed unused deleteAudit import warning in SecurityPage
This commit is contained in:
2026-01-30 04:45:36 +00:00
parent dd2c80224e
commit fe18fc12f9
3 changed files with 480 additions and 3 deletions

View File

@@ -80,14 +80,14 @@ async function updateAudit(
return res.json();
}
// @ts-expect-error unused but kept for future use
async function deleteAudit(id: string): Promise<void> {
async function _deleteAudit(id: string): Promise<void> {
const res = await fetch(`${BASE}/${id}`, {
method: "DELETE",
credentials: "include",
});
if (!res.ok) throw new Error("Failed to delete audit");
}
export { _deleteAudit as deleteAudit };
// ─── Helpers ───