Skip to content

Commit

Permalink
Merge pull request #105 from cyberark/fix-goreleaser
Browse files Browse the repository at this point in the history
Apply CVE-2022-24765 workaround for git run in container
  • Loading branch information
szh authored May 19, 2022
2 parents cd8fa8b + 6f7d85a commit daddb10
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ docker run --rm -t \
--entrypoint "/sbin/tini" \
-v "$CURRENT_DIR:$MOUNT_DIR" \
-w "$MOUNT_DIR" \
"${GORELEASER_IMAGE}" -- sh -c "/entrypoint.sh --rm-dist $@ && rm ./dist/goreleaser/artifacts.json"
"${GORELEASER_IMAGE}" \
-- sh -c "git config --global --add safe.directory $MOUNT_DIR && \
/entrypoint.sh --rm-dist $@ && \
rm ./dist/goreleaser/artifacts.json"

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

0 comments on commit daddb10

Please sign in to comment.