mirror of
https://github.com/ceph/ceph-csi.git
synced 2025-06-14 18:53:35 +00:00
Add 'gosec' to the static-checks
Run static security scanning tool 'gosec' while testing. URL: https://github.com/securego/gosec Signed-off-by: Niels de Vos <ndevos@redhat.com>
This commit is contained in:
committed by
mergify[bot]
parent
dd668e59f1
commit
8f133e03b8
9
scripts/gosec.sh
Executable file
9
scripts/gosec.sh
Executable file
@ -0,0 +1,9 @@
|
||||
#!/bin/bash
|
||||
|
||||
set -o pipefail
|
||||
|
||||
if [[ -x "$(command -v gosec)" ]]; then
|
||||
find cmd pkg -type d -print0 | xargs --null gosec
|
||||
else
|
||||
echo "WARNING: gosec not found, skipping security tests" >&2
|
||||
fi
|
Reference in New Issue
Block a user