IF Commons GitHub

logical/zap

Written to: 1 requirement: 1 proved, 0 partly, 0 failing, 0 with no test recorded. 0003-findings-importers FR-002

OWASP ZAP: the JSON report (-J, or the traditional JSON report). Every alert of every site is one finding (the instances of an alert are one finding with the first place and how many there were), with the risk code as the severity (3 high, 2 medium, 1 low, 0 informational: ZAP has no critical), the CWE from cweid and the asset the origin of the site. The request, the response and the evidence of an instance are cut short and redacted.

import { importZap } from "./zap.ts";
importZap("zap.json", JSON.stringify({ site: [] })).findings; // []

Source: commons/findings/src/logical/zap.ts

1 of 2 exports are imported by a test of the run. A test that imports an export may not call it or check what it returns.

logical.importZapfunctionno test imports it
function importZap(file: string, text: string): Imported

The findings of a ZAP JSON report.

importZapfunction
function importZap(file: string, text: string): Imported

The findings of a ZAP JSON report.

Imported by 8 tests of the run (8 passed, 0 failed): the library's results

Titles, headings, exports, tables, columns and requirements. Esc closes.