logical.importSariffunctionno test imports itfunction importSarif(file: string, text: string, asset: string): ImportedThe findings of a SARIF log of the asset given.
SARIF 2.1.0: every result of every run is a finding. The severity is the security-severity score where the rule or the result has one (9 and over critical, 7 high, 4 medium, above 0 low), else the level (error high, warning medium, note low, none info). The weakness is read from the rule's tags (external/cwe/cwe-79), the place from the first location (the file and the line). SARIF says what was scanned in its locations, not as a host, so the asset is given (the repository or the system the scan was of).
import { importSarif } from "./sarif.ts";
importSarif("a.sarif", JSON.stringify({ version: "2.1.0", runs: [] }), "portal").findings; // []logical.importSariffunctionno test imports itfunction importSarif(file: string, text: string, asset: string): ImportedThe findings of a SARIF log of the asset given.
importSariffunctionfunction importSarif(file: string, text: string, asset: string): ImportedThe findings of a SARIF log of the asset given.