build: move GOSEC_VERSION to build.env

Signed-off-by: Niels de Vos <ndevos@redhat.com>
This commit is contained in:
Niels de Vos 2020-06-22 14:39:35 +02:00 committed by mergify[bot]
parent bc2ac1ccac
commit 079459c247
3 changed files with 2 additions and 2 deletions

View File

@ -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}"

View File

@ -15,3 +15,4 @@ GO111MODULE=on
# static checks and linters
GOLANGCI_VERSION=v1.21.0
GOSEC_VERSION=2.0.0

View File

@ -10,7 +10,6 @@
FROM fedora:latest
ARG GOSEC_VERSION=2.0.0
ARG GOPATH=/go
ENV \