Skip to content

Commit b2c0274

Browse files
szhGitHub Enterprise
authored andcommitted
Merge pull request #41 from Conjur-Enterprise/fix-goreleaser
CNJR-5882: Fix goreleaser deprecated flag
2 parents 1283941 + c5d6ca3 commit b2c0274

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

bin/build_release

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,6 @@ docker run --rm -t \
4848
--env VERSION="${VERSION}" \
4949
--volume "${REPO_ROOT}:/secretless-broker" \
5050
--workdir /secretless-broker \
51-
"${GORELEASER_IMAGE}:${GORELEASER_LATEST_TAG}" --rm-dist "$@"
51+
"${GORELEASER_IMAGE}:${GORELEASER_LATEST_TAG}" --clean "$@"
5252

5353
echo "Releases built. Archives can be found in dist/goreleaser"

bin/check_golang_security

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
set -eo pipefail
88

99
current_dir=$("$(dirname "$0")/abspath")
10-
toplevel_dir="$current_dir/.."
10+
toplevel_dir="$(cd "$current_dir/.." && pwd)"
1111

1212
# Default values to pass to security_scan
1313
confidence='medium'
@@ -39,6 +39,7 @@ if [[ ! -v BRANCH_NAME ]]; then
3939
else
4040
# Running in Jenkins
4141
excluded_directories="${toplevel_dir}/test,${toplevel_dir}/third_party/go-mssqldb"
42+
echo "Excluding directories: ${excluded_directories}"
4243
go install github.com/securego/gosec/v2/cmd/gosec@latest
4344
git config --global --add safe.directory "${WORKSPACE}"
4445
./bin/run_gosec -c "${confidence}" -s "${severity}" -b "${current_branch}" -e "${excluded_directories}"

0 commit comments

Comments
 (0)