A simple tool to make understanding GitLab SAST reports a little bit easier.
pip install -r requirements.txt
docker build -t sast-parser .
usage: parse-sast.py [-h] [--only-severities ONLY_SEVERITIES]
[--jsonpath-filter JSONPATH_FILTER]
[--no-verify-version]
files [files ...]
docker run --rm -it -v "$(pwd):/reports" sast-parser [-h] [--only-severities ONLY_SEVERITIES]
[--jsonpath-filter JSONPATH_FILTER]
files [files ...]
You can the create an alias to make it easier to run:
alias sast-parser="docker run --rm -it -v \"$(pwd):/reports\" sast-parser"