File tree Expand file tree Collapse file tree 2 files changed +4
-5
lines changed Expand file tree Collapse file tree 2 files changed +4
-5
lines changed Original file line number Diff line number Diff line change 35
35
fi
36
36
37
37
# solbuildpackpusher/solidity-buildpack-deps:emscripten-13
38
+ # NOTE: Without `safe.directory` git would assume it's not safe to operate on /root/project since it's owned by a different user.
39
+ # See https://github.blog/2022-04-12-git-security-vulnerability-announced/
38
40
docker run -v " $( pwd) :/root/project" -w /root/project \
39
41
solbuildpackpusher/solidity-buildpack-deps@sha256:f1c13f3450d1f2e53ea18ac1ac1a17e932573cb9a5ccd0fd9ef6dd44f6402fa9 \
40
- ./ scripts/ci/build_emscripten.sh " $BUILD_DIR "
42
+ /bin/bash -c " git config --global --add safe.directory /root/project && ./ scripts/ci/build_emscripten.sh $BUILD_DIR "
Original file line number Diff line number Diff line change 40
40
BUILD_DIR=" $1 "
41
41
fi
42
42
43
- apt-get update
44
- apt-get install lz4 --no-install-recommends
45
-
46
43
WORKSPACE=/root/project
47
44
48
- cd $WORKSPACE
45
+ cd " $WORKSPACE "
49
46
50
47
# shellcheck disable=SC2166
51
48
if [[ " $CIRCLE_BRANCH " = release || -n " $CIRCLE_TAG " || -n " $FORCE_RELEASE " || " $( git tag --points-at HEAD 2> /dev/null) " == v* ]]
You can’t perform that action at this time.
0 commit comments