Skip to content

feat: chant migrate SARIF report + --strict #90

@lex00

Description

@lex00

The Markdown report (#86) is human-readable; SARIF is the CI-ingestible form. chant already supports SARIF for lint --format sarif, so the formatter machinery exists.

chant migrate <...> --report migration-report.sarif
chant migrate <...> --strict   # exit 1 if anything lands in NeedsReview or Lost

Each ProvenanceRecord (#85) becomes one SARIF result with level mapped from category (Translated → none, Approximated → note, NeedsReview → warning, Lost → error).

Done when

  • --report <file>.sarif emits a valid SARIF v2.1.0 document.
  • --strict exits non-zero on any NeedsReview or Lost provenance record.
  • CI ingestion smoke-tested against GitHub's SARIF upload action (manual verification noted in PR).

Depends on: #86.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions