IF Commons GitHub

logical/sarif

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

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; // []

Source: commons/findings/src/logical/sarif.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.importSariffunctionno test imports it
function importSarif(file: string, text: string, asset: string): Imported

The findings of a SARIF log of the asset given.

importSariffunction
function importSarif(file: string, text: string, asset: string): Imported

The findings of a SARIF log of the asset given.

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

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