mirror of
https://github.com/ceph/ceph-csi.git
synced 2024-11-22 22:30:23 +00:00
8f133e03b8
Run static security scanning tool 'gosec' while testing. URL: https://github.com/securego/gosec Signed-off-by: Niels de Vos <ndevos@redhat.com>
10 lines
193 B
Bash
Executable File
10 lines
193 B
Bash
Executable File
#!/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
|