ceph-csi/scripts/gosec.sh

10 lines
193 B
Bash
Raw Normal View History

#!/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