Skip to content

Enhancement: include source path for license findings in machine-readable scan output #213

Closed

Description

@vibgrate-team

Context

License scanners sometimes drop or under-specify licenses that fail SPDX parsing, leaving JSON/SARIF consumers without a file path to investigate. For Vibgrate, license-related findings in vg scan machine-readable output should carry a stable source path (manifest, NOTICE, or declared license file) whenever one exists, so CI and humans can act.

What to do

  1. Find where license findings are serialized in scan JSON/SARIF (or confirm if license findings are out of scope today — if absent, document that and stop, or add a minimal field if the pipeline already has the path).
  2. When a license finding is emitted, include a deterministic path / location field pointing at the evidence file.
  3. If SPDX parse fails, prefer an actionable finding (“unparseable license text at …”) over silent drop — only if that matches product intent; otherwise document the drop.
  4. Add a fixture with a known license file and assert the path appears in output.

Acceptance

  • Machine-readable license findings include a stable source path when available
  • Silent drops are either fixed or explicitly documented
  • Output remains deterministic; no secrets in fixtures
  • DCO sign-off on commits (git commit -s) if the PR touches the repo

Mentoring notes

Do not paste private policy engines. Keep the change bounded to serialization + fixture. Related to actionable-errors themes in #150 / #163 — this ticket is specifically license path evidence.

Activity

  1. added
    enhancement
    on Sep 17, 2026
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

    enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions