mirror of
https://github.com/ceph/ceph-csi.git
synced 2024-12-18 02:50:30 +00:00
build: move GOSEC_VERSION to build.env
Signed-off-by: Niels de Vos <ndevos@redhat.com>
This commit is contained in:
parent
bc2ac1ccac
commit
079459c247
@ -20,7 +20,6 @@ branches:
|
||||
env:
|
||||
global:
|
||||
- GO111MODULE=on
|
||||
- GOSEC_VERSION=2.0.0
|
||||
- TEST_COVERAGE=stdout
|
||||
- GO_METALINTER_THREADS=1
|
||||
- GO_COVER_DIR=_output
|
||||
@ -70,6 +69,7 @@ jobs:
|
||||
"https://install.goreleaser.com/github.com/golangci/golangci-lint.sh"
|
||||
| bash -s -- -b $GOPATH/bin "${GOLANGCI_VERSION}"
|
||||
# install gosec
|
||||
- export GOSEC_VERSION=$(source build.env ; echo ${GOSEC_VERSION})
|
||||
- curl -sfL
|
||||
"https://raw.githubusercontent.com/securego/gosec/master/install.sh"
|
||||
| sh -s -- -b $GOPATH/bin "${GOSEC_VERSION}"
|
||||
|
@ -15,3 +15,4 @@ GO111MODULE=on
|
||||
|
||||
# static checks and linters
|
||||
GOLANGCI_VERSION=v1.21.0
|
||||
GOSEC_VERSION=2.0.0
|
||||
|
@ -10,7 +10,6 @@
|
||||
|
||||
FROM fedora:latest
|
||||
|
||||
ARG GOSEC_VERSION=2.0.0
|
||||
ARG GOPATH=/go
|
||||
|
||||
ENV \
|
||||
|
Loading…
Reference in New Issue
Block a user