SAST
python3 -m pip install semgrep
wget https://gitlab.com/ignis-build/sarif-converter/-/releases/permalink/latest/downloads/bin/sarif-converter-linux-amd64
chmod +x sarif-converter-linux-amd64
git clone https://github.com/semgrep/semgrep-rules
semgrep scan --config=auto --sarif --sarif-output=semgrep.sarif
semgrep scan --config=p/python --sarif --sarif-output=semgrep.sarif
semgrep scan --config=/root/Desktop/semgrep-rules/python/ --sarif --sarif-output=semgrep.sarif
./sarif-converter-linux-amd64 --type html semgrep.sarif semgrep-report.html
Last updated
Was this helpful?