forked from nihonium/linux-auth
add golangci-lint (2nd sast tool)
This commit is contained in:
parent
29d1c32e9d
commit
0573622056
3 changed files with 11 additions and 2 deletions
5
sast_results/golangci-lint.txt
Normal file
5
sast_results/golangci-lint.txt
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
internal/ui/console.go:62:3: QF1003: could use tagged switch on resp (staticcheck)
|
||||
if resp == "y" || resp == "yes" {
|
||||
^
|
||||
1 issues:
|
||||
* staticcheck: 1
|
||||
|
|
@ -4,7 +4,6 @@
|
|||
# --------------------------------------
|
||||
|
||||
echo "Установка curl"
|
||||
|
||||
sudo apt update
|
||||
sudo apt install -y curl
|
||||
|
||||
|
|
@ -12,5 +11,7 @@ echo "Создание директории для результатов ана
|
|||
mkdir -p sast_results
|
||||
|
||||
echo "Установка bearer"
|
||||
|
||||
curl -sfL https://raw.githubusercontent.com/Bearer/bearer/main/contrib/install.sh | sh
|
||||
|
||||
echo "Установка golangci-lint"
|
||||
curl -sSfL https://golangci-lint.run/install.sh | sh -s v2.11.2
|
||||
|
|
|
|||
|
|
@ -6,4 +6,7 @@
|
|||
echo "Запуск bearer"
|
||||
./bin/bearer scan --output sast_results/bearer.txt .
|
||||
|
||||
echo "Запуск golangci-lint"
|
||||
./bin/golangci-lint run > sast_results/golangci-lint.txt
|
||||
|
||||
echo "Анализ завершён, результаты в sast_results"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue