Skip to content

Commit

Permalink
{CI} Add /azure-cli as safe.directory in docker container (Azure#…
Browse files Browse the repository at this point in the history
  • Loading branch information
jiasli authored Apr 13, 2022
1 parent edd0708 commit b722aeb
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions scripts/ci/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,11 @@ set -ev
##############################################
# clean up and dir search
mkdir -p ./artifacts

# Current folder (/azure-cli) is mounted from host which has different owner than docker container's
# current user 0(root).
# https://github.blog/2022-04-12-git-security-vulnerability-announced/
git config --global --add safe.directory $(pwd)
echo `git rev-parse --verify HEAD` > ./artifacts/build.sha

mkdir -p ./artifacts/build
Expand Down

0 comments on commit b722aeb

Please sign in to comment.