From 6d389171366cecfe6298caebac2c34a72216461a Mon Sep 17 00:00:00 2001 From: Markus Pesch Date: Sun, 15 Oct 2023 14:38:46 +0200 Subject: [PATCH] fix: forward leading version char correctly --- .drone.yml | 6 +++--- Dockerfile | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.drone.yml b/.drone.yml index 6c9538b..bf5941b 100644 --- a/.drone.yml +++ b/.drone.yml @@ -597,7 +597,7 @@ steps: password: from_secret: git_cryptic_systems_container_registry_password build_args: - - GOSEC_VERSION=${DRONE_TAG} + - GOSEC_VERSION=v${DRONE_TAG} - name: email-notification environment: @@ -657,7 +657,7 @@ steps: password: from_secret: git_cryptic_systems_container_registry_password build_args: - - GOSEC_VERSION=${DRONE_TAG} + - GOSEC_VERSION=v${DRONE_TAG} - name: email-notification environment: @@ -717,7 +717,7 @@ steps: password: from_secret: git_cryptic_systems_container_registry_password build_args: - - GOSEC_VERSION=${DRONE_TAG} + - GOSEC_VERSION=v${DRONE_TAG} - name: email-notification environment: diff --git a/Dockerfile b/Dockerfile index 67b1359..ec9364f 100644 --- a/Dockerfile +++ b/Dockerfile @@ -6,7 +6,7 @@ RUN apk update && \ apk upgrade && \ apk add git make -RUN if [ ! -z "${GOSEC_VERSION}" ]; then set -ex; go install github.com/securego/gosec/v2/cmd/gosec@v${GOSEC_VERSION}; fi +RUN if [ ! -z "${GOSEC_VERSION}" ]; then set -ex; go install github.com/securego/gosec/v2/cmd/gosec@${GOSEC_VERSION}; fi RUN if [ -z "${GOSEC_VERSION}" ]; then set -ex; go install github.com/securego/gosec/v2/cmd/gosec@latest; fi RUN cp /go/bin/gosec /usr/bin/gosec && \