8000 feat(reviews): download review findings as SARIF by redoh · Pull Request #10 · inkspect-code-review/inkspect-ui · GitHub
[go: up one dir, main page]

Skip to content

feat(reviews): download review findings as SARIF - #10

Merged
redoh merged 1 commit into
mainfrom
feat/review-sarif-download
Nov 20, 2026
Merged

redoh merged 1 commit into
mainfrom
feat/review-sarif-download

Conversation

@redoh
@redoh redoh commented Nov 20, 2026
Copy link
Copy Markdown
Contributor

What changes and why?

Reviewers can select Download SARIF in the overview of a completed review to import findings into another analysis tool. The browser creates a SARIF 2.1.0 file locally, including source locations, severity, the reviewed revision and coverage. A completed review with zero findings also produces a report.

Fingerprints use the file path, normalized finding title and occurrence in source order. A file rename or a reworded title can change the fingerprint.

Validation

  • The source audit, lint, all 20 tests and the production build passed.
  • Four synthetic exports passed validation against the OASIS SARIF 2.1.0 schema.
  • Regression tests cover local file download, locations, severity, fingerprints, and empty or incomplete results.
  • Updated the README and changelog. The staged source and nested archive audit passed.

@inkspectsi
inkspectsi Bot commented Nov 20, 2026 •
Copy link
Copy Markdown

No blocking issues found

Commit: bc9b1f1

The change adds a local SARIF download with finding locations, severity, fingerprints, revision metadata and coverage information. It includes documentation and regression tests for populated and empty reports. Source review found no blocking issues or embedded credentials in the changed lines. Tests were not executed during this review.

Change vs. PR intent: Aligned. The overview button and SARIF serializer implement the stated local export, including empty results, coverage metadata and title-based fingerprints.

Scores

Code quality █████ 5/5
The change separates serialization from downloading and adds focused tests for locations, severity, fingerprint stability and empty reports.

Security █████ 5/5
The export uses a local Blob without network requests, encodes artifact paths, sanitizes the download filename and introduces no visible credential literals.

Local SARIF download

flowchart LR
    n0["Reviewer selects Download SARIF"]
    n1["Convert recorded findings and run metadata to SARIF"]
    n2["Create a local Blob URL and trigger file download"]
    n3["Revoke the Blob URL after a delay"]
    n0 -->|"Pass the displayed report"| n1
    n1 -->|"Serialize SARIF as JSON"| n2
    n2 -->|"Schedule URL cleanup"| n3
Loading

No findings on the changed lines.

View the full report in Inkspect


Reviewed by Inkspect · engine v0.0.40

@redoh
redoh merged commit a7dbbc9 into main Nov 20, 2026
4 checks passed
@redoh
redoh deleted the feat/review-sarif-download branch November 20, 2026 14:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

0