mirror of
https://github.com/ceph/ceph-csi.git
synced 2024-11-22 22:30:23 +00:00
ad0b8897bf
Signed-off-by: Niels de Vos <ndevos@redhat.com>
13 lines
358 B
Bash
Executable File
13 lines
358 B
Bash
Executable File
#!/bin/bash
|
|
|
|
set -o pipefail
|
|
|
|
if [[ -x "$(command -v gosec)" ]]; then
|
|
# gosec does not support -mod=vendor, so fallback to non-module support and
|
|
# assume all dependencies are available in ./vendor already
|
|
export GO111MODULE=off
|
|
find cmd pkg -type d -print0 | xargs --null gosec
|
|
else
|
|
echo "WARNING: gosec not found, skipping security tests" >&2
|
|
fi
|