mirror of
https://github.com/ceph/ceph-csi.git
synced 2025-06-13 02:33:34 +00:00
ci: remove gh action gosec linter,since it is already part of golangci
This commit removes gosec standalone linter and related parts, since golangci linter runs gosec linter too. Signed-off-by: Rakshith R <rar@redhat.com>
This commit is contained in:
@ -40,8 +40,6 @@ RUN source /build.env \
|
||||
&& gem install mdl \
|
||||
&& curl -sf "https://install.goreleaser.com/github.com/golangci/golangci-lint.sh" \
|
||||
| bash -s -- -b ${GOPATH}/bin "${GOLANGCI_VERSION}" \
|
||||
&& curl -sfL "https://raw.githubusercontent.com/securego/gosec/master/install.sh" \
|
||||
| sh -s -- -b $GOPATH/bin "${GOSEC_VERSION}" \
|
||||
&& curl -L https://git.io/get_helm.sh | bash -s -- --version "${HELM_VERSION}" \
|
||||
&& mkdir /opt/commitlint && pushd /opt/commitlint \
|
||||
&& npm init -y \
|
||||
|
@ -1,12 +0,0 @@
|
||||
#!/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 "${GO_TAGS}"
|
||||
else
|
||||
echo "WARNING: gosec not found, skipping security tests" >&2
|
||||
fi
|
Reference in New Issue
Block a user