Skip to content

feat(review): the SARIF export of a review carries the ToolRun of each scan under its SARIF 2.1.0 names #1983

Closed

Description

@dan-petty

Friction

  • A review keeps the ToolRun of every scan in its profile and in review.md, but its SARIF export does not carry these records. A consumer of findings.sarif cannot see which version, binary, config or ruleset gave a result.

Evidence

Checked at main 4bb052c.

Existing tool considered

  • No SARIF library is a dependency, and to_sarif builds the dictionaries itself. This part uses the names of the SARIF 2.1.0 schema.
  • jsonschema is already a dependency (pyproject.toml:30). A test checks the document against the published SARIF 2.1.0 JSON schema with it.

Proposed remedy

  • A person first decides whether a clean tool gets a run.
  • The ToolRun records the exit code of the run.
  • The SARIF export writes each record under its SARIF 2.1.0 names: the binary hash as an artifact with the role driver, the config, ruleset and target groups as run.artifacts with hashes and roles, the argument template as the command line of the invocation, and the commit as the revisionId of versionControlProvenance, with the repositoryUri of the reviewed checkout.

Acceptance criteria

  • A ToolRun holds the exit code of its run.
  • Each SARIF run of a scanner carries the facts of its ToolRun under the SARIF 2.1.0 names that the module docstring of tool_executor.py lists.
  • The document validates against the SARIF 2.1.0 JSON schema in a test.
  • Tests run offline with fakes and recorded tool output: no network, no real scanner, no model. Each new test runs under 1 s.
  • uv run devops ci passes.
  • Pending a person: decide whether a clean tool gets a SARIF run.

Source: #772

Activity

  1. added
    source/agent
    type/feature
    on Oct 23, 2026
  2. dan-petty commented on Oct 23, 2026

    @dan-petty
    OwnerAuthor

    Intake placed this item to the backlog: intake puts every new item in the backlog. A person plans the milestones on the board.

    • Type: type/feature. The candidate adds new functionality to the SARIF export of a review.
    • Priority: P2-Medium. The change improves the information available in SARIF exports but does not fix a critical issue.
    • Value: Medium. Users benefit from more detailed information about tool runs in SARIF exports.
    • Effort: High. The change requires modifications to multiple components and extensive testing.
  3. added a commit that references this issue on Oct 24, 2026
    76a1b64
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    source/agenttype/feature

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions