OWASP-Benchmark / BenchmarkUtils

OWASP Benchmark Project Utilities - Provides scorecard generation and crawling tools for Benchmark style test suites.
https://owasp.org/www-project-benchmark/
GNU General Public License v3.0
13 stars 48 forks source link

#65 - Reader for Snyk and Semgrep SARIF files #67

Closed darkspirit510 closed 2 months ago

darkspirit510 commented 2 months ago

Hi @davewichers,

as mentioned via Mail, this is my current state. It can be merged and I can do my refactoring in another PR.

This solves https://github.com/OWASP-Benchmark/BenchmarkUtils/issues/65 and supports Semgrep SARIF. For some reason, Snyk JSON and SARIF seems to be the same export, just with different file ending (or the one who provided the file used the wrong file ending). So BenchmarkUtils should already be able to parse Snyk SARIF file when changing ending to .sarif instead of .json. I refactored the class and removed the check for file ending, so it does not matter which type is provided. 🤷‍♂️

Sascha