mirror of
https://github.com/ceph/ceph-csi.git
synced 2024-11-14 02:10:21 +00:00
32839948ef
The internal/ directory in Go has a special meaning, and indicates that those packages are not meant for external consumption. Ceph-CSI does provide public APIs for other projects to consume. There is no plan to keep the API of the internally used packages stable. Closes: #903 Signed-off-by: Niels de Vos <ndevos@redhat.com>
13 lines
363 B
Bash
Executable File
13 lines
363 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 internal -type d -print0 | xargs --null gosec
|
|
else
|
|
echo "WARNING: gosec not found, skipping security tests" >&2
|
|
fi
|