mirror of
https://github.com/ceph/ceph-csi.git
synced 2024-12-18 11:00:25 +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:
|
env:
|
||||||
global:
|
global:
|
||||||
- GO111MODULE=on
|
- GO111MODULE=on
|
||||||
- GOSEC_VERSION=2.0.0
|
|
||||||
- TEST_COVERAGE=stdout
|
- TEST_COVERAGE=stdout
|
||||||
- GO_METALINTER_THREADS=1
|
- GO_METALINTER_THREADS=1
|
||||||
- GO_COVER_DIR=_output
|
- GO_COVER_DIR=_output
|
||||||
@ -70,6 +69,7 @@ jobs:
|
|||||||
"https://install.goreleaser.com/github.com/golangci/golangci-lint.sh"
|
"https://install.goreleaser.com/github.com/golangci/golangci-lint.sh"
|
||||||
| bash -s -- -b $GOPATH/bin "${GOLANGCI_VERSION}"
|
| bash -s -- -b $GOPATH/bin "${GOLANGCI_VERSION}"
|
||||||
# install gosec
|
# install gosec
|
||||||
|
- export GOSEC_VERSION=$(source build.env ; echo ${GOSEC_VERSION})
|
||||||
- curl -sfL
|
- curl -sfL
|
||||||
"https://raw.githubusercontent.com/securego/gosec/master/install.sh"
|
"https://raw.githubusercontent.com/securego/gosec/master/install.sh"
|
||||||
| sh -s -- -b $GOPATH/bin "${GOSEC_VERSION}"
|
| sh -s -- -b $GOPATH/bin "${GOSEC_VERSION}"
|
||||||
|
@ -15,3 +15,4 @@ GO111MODULE=on
|
|||||||
|
|
||||||
# static checks and linters
|
# static checks and linters
|
||||||
GOLANGCI_VERSION=v1.21.0
|
GOLANGCI_VERSION=v1.21.0
|
||||||
|
GOSEC_VERSION=2.0.0
|
||||||
|
@ -10,7 +10,6 @@
|
|||||||
|
|
||||||
FROM fedora:latest
|
FROM fedora:latest
|
||||||
|
|
||||||
ARG GOSEC_VERSION=2.0.0
|
|
||||||
ARG GOPATH=/go
|
ARG GOPATH=/go
|
||||||
|
|
||||||
ENV \
|
ENV \
|
||||||
|
Loading…
Reference in New Issue
Block a user