strozfriedberg / lightgrep

Command-line utility for multipattern search using liblightgrep
Apache License 2.0
58 stars 11 forks source link

SARIF support for lightgrep output #8

Open 247arjun opened 1 month ago

247arjun commented 1 month ago

Lightgrep supports output to stdout or tab-delimited columnar data. Supporting SARIF could allow for a richer representation of the output, with the added benefit of SARIF being an open standard with extensive tooling across the open-source community.

sf-jonstewart commented 1 month ago

Hi! Thank you for the idea. I've never thought about this.

The SARIF spec is big — what kind of SARIF output would it make sense for lightgrep to create? What would the use case be? Could you post some example SARIF output that you'd want from lightgrep? It wouldn't have to be completely accurate, just to provide me with a sense of what lightgrep should support and how it would be useful.

cheers,

Jon