Skip to content

SARIF

SARIF 2.1.0. The log names the published schema in $schema.

  • Each rule becomes a reportingDescriptor; findings become results with partialFingerprints carrying the same fingerprint the baseline uses, so GitHub can track a finding across commits.
  • Every rule is listed, including rules that are off by default. A rule that is off by default carries defaultConfiguration.enabled: false. SARIF has no “off” level, so a consumer should read enabled rather than level to learn that a rule does not run by default.
  • The descriptors state each rule’s built-in default, not the run’s --rule or configuration overrides. A rule enabled for the run can produce results although its descriptor says enabled: false, and a rule turned off for the run still shows its built-in default. A rule that is off for the run is not computed, so it never backs a result.
  • verdict travels in a result property, since SARIF has no field for it.
  • Artifact locations are URI references: after the shared path sanitization, UTF-8 bytes outside letters, digits, -._~ and / are percent-encoded. For example, src/[id]/a b#c%41.test.ts becomes src/%5Bid%5D/a%20b%23c%2541.test.ts. Decode once to recover the sanitized path; JSON, JSONL and HTML keep plain path strings. Regions and fingerprints are unchanged. See Output safety for the shared sanitization limits.
  • An incomplete run sets runs[0].invocations[0].properties.incomplete. runs[0].invocations[0].properties.incompleteCauses counts the causes, keyed and valued as in the json report, and is present with false/zero values on a complete run.
  • runs[0].invocations[0].properties.qualityGate carries the threshold’s figures as in the json report: errorCases, eligibleCases and percentage.
  • Excluded files are not results: the per-file list and reason codes are in the json and jsonl reports only (see Excluded files).

Back to Reports.