Skip to content

feat: add SARIF format#4

Merged
jakeva merged 1 commit into
mainfrom
add-sarif-format
Mar 25, 2026
Merged

feat: add SARIF format#4
jakeva merged 1 commit into
mainfrom
add-sarif-format

Conversation

@jakeva
Copy link
Copy Markdown
Owner

@jakeva jakeva commented Mar 25, 2026

Added --format sarif which outputs a SARIF 2.1.0 document. Each violation becomes a result with ruleId, level: "error", the message, and a physicalLocation pointing to the file.

Also added a scan job in CI that builds spinlint, runs it against testdata/*.json, and uploads the SARIF to GitHub Code Scanning via codeql-action/upload-sarif.

Signed-off-by: Jake Valenzuela <5650707+jakeva@users.noreply.github.com>
@jakeva jakeva self-assigned this Mar 25, 2026
@github-advanced-security
Copy link
Copy Markdown

You are seeing this message because GitHub Code Scanning has recently been set up for this repository, or this pull request contains the workflow file for the Code Scanning tool.

What Enabling Code Scanning Means:

  • The 'Security' tab will display more code scanning analysis results (e.g., for the default branch).
  • Depending on your configuration and choice of analysis tool, future pull requests will be annotated with code scanning analysis results.
  • You will be able to see the analysis results for the pull request's branch on this overview once the scans have completed and the checks have passed.

For more information about GitHub Code Scanning, check out the documentation.

@jakeva jakeva merged commit 70276f8 into main Mar 25, 2026
4 checks passed
@jakeva jakeva deleted the add-sarif-format branch March 25, 2026 05:02
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.

2 participants