Skip to content

sarifLog object

A sarifLog object specifies the version of the file format and contains the output from one or more runs.

sarifLog object

Example

{
    "$schema": "https://json.schemastore.org/sarif-2.1.0.json",
    "version": "2.1.0",
    "runs": []
}

How to generate

See full examples/sarifLog.php script into repository.

[!NOTE] Since release 1.5.0, you may use fluent builders API as alternative. See full examples/builder/sarifLog.php script into repository.

<?php declare(strict_types=1);

use Bartlett\Sarif\SarifLog;

$log = new SarifLog();