SARIF Viewer (CodeQL, Semgrep & Static Analysis Results)

SARIF Viewer (CodeQL, Semgrep & Static Analysis Results), a VS Code extension by Zovo

Open .sarif logs from CodeQL, Semgrep, ESLint, Bandit, Trivy, Checkov, Gitleaks and other scanners as a fast table in VS Code. Click a result to jump to its line, step through the code flow, and filter by level, baseline state and suppression. Free, no sign-in, works offline: the viewer sends nothing anywhere.

Install in VS CodeOpen the Marketplace page

Free, MIT license. Needs VS Code 1.90.0 or newer. Extension ID zovo.zovo-sarif-viewer, version 0.2.1.

SARIF Viewer showing a CodeQL log grouped by rule, with the SQL injection code flow on step 3 and server.js open beside it

Questions people ask

Is SARIF Viewer (CodeQL, Semgrep & Static Analysis Results) free?

Yes. SARIF Viewer (CodeQL, Semgrep & Static Analysis Results) is free and MIT licensed.

How do I install SARIF Viewer (CodeQL, Semgrep & Static Analysis Results)?

Click "Install in VS Code" above, or search for zovo.zovo-sarif-viewer in the Extensions view.

What it fixes

The most-discussed issues and reviews of other SARIF viewers asked for these:

Features

Large logs

The log is parsed in a background thread, and the table asks for only the rows on screen. A generated 150 MB log with 313,079 results from 4 tools showed its first rows 1.5 seconds after opening in VS Code 1.142 on a Mac. Jumping to the last row took 85 ms and a text filter took 0.8 seconds. The extension host used about 480 MB at the peak. Logs over 300 MB ask first (sarifViewer.maxFileMB), and logs over 500 MB get a message instead of a hang.

The 150 MB log open in the viewer

Safe with logs you did not write

Settings

SettingDefaultWhat it does
sarifViewer.groupByruleGrouping when a log opens
sarifViewer.showSuppressedhideSuppressed results: hide, show or only
sarifViewer.pathMappings{}Extra path maps, for example { "/home/runner/work/app/app": "" }
sarifViewer.openBesidetrueOpen files beside the table
sarifViewer.problemsLimit5000Most results Show in Problems adds
sarifViewer.maxFileMB300Size that asks before parsing

Commands: "SARIF: Compare Two SARIF Logs", "SARIF: Forget Remembered Path Mappings", "SARIF: Open a Sample SARIF Log".

More screenshots

Rule help, CWE links and security severity in the details pane
Light theme with baseline and suppression filters
CodeQL results in the Problems panel
Comparing two Gitleaks logs: new, unchanged and fixed

Works in

VS Code 1.90 and newer, and editors that install from Open VSX (Cursor, Windsurf, VSCodium). It works over Remote SSH, WSL and in containers.

Guides

Install SARIF Viewer (CodeQL, Semgrep & Static Analysis Results)

Click the button to open VS Code and install it, or press Ctrl+P (Cmd+P on macOS) in VS Code and run ext install zovo.zovo-sarif-viewer.

Free, MIT license. Needs VS Code 1.90.0 or newer. Extension ID zovo.zovo-sarif-viewer, version 0.2.1.

Source code and issues are on GitHub.

All our VS Code extensions

Support this work

If this extension saves you time, you can support the work on GitHub Sponsors. Monthly tiers start at $5, and one-time tiers start at $15. Sponsorship is optional, and the tool works the same without it.

Need your format supported?

Open a format request with a sample file, and I reply there whether it can be done. For USD 299 once, through this GitHub Sponsors tier, I add your file format or a missing feature to this extension, with tests, within 7 days.