mirror of
https://github.com/ceph/ceph-csi.git
synced 2024-11-09 16:00:22 +00:00
tests: gosec does not support '-mod=vendor'
Signed-off-by: Niels de Vos <ndevos@redhat.com>
This commit is contained in:
parent
a262063819
commit
ad0b8897bf
@ -3,6 +3,9 @@
|
||||
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
|
||||
|
Loading…
Reference in New Issue
Block a user