forked from nihonium/linux-auth
add sarif format
This commit is contained in:
parent
04969ee6f8
commit
720ff42f34
5 changed files with 174 additions and 1 deletions
15
scripts/run_sast_sarif.sh
Normal file
15
scripts/run_sast_sarif.sh
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
#!/bin/bash
|
||||
# --------------------------------------
|
||||
# Запуск SAST анализа
|
||||
# --------------------------------------
|
||||
|
||||
echo "Запуск bearer"
|
||||
./bin/bearer scan --format sarif --output sast_results/bearer.sarif .
|
||||
|
||||
echo "Запуск golangci-lint"
|
||||
./bin/golangci-lint run --output.sarif.path sast_results/golangci-lint.sarif
|
||||
|
||||
echo "Запуск gosec"
|
||||
./bin/gosec -fmt sarif -out sast_results/gosec.sarif ./...
|
||||
|
||||
echo "Анализ завершён, результаты в sast_results"
|
||||
Loading…
Add table
Add a link
Reference in a new issue