mirror of
https://github.com/actions/runner-images.git
synced 2025-12-14 22:05:17 +00:00
[Ubuntu] Add safe directory setting to git config (#5420)
* Add safe directory setting to git config * Change git config file to /etc/gitconfig
This commit is contained in:
@@ -15,6 +15,11 @@ add-apt-repository $GIT_REPO -y
|
||||
apt-get update
|
||||
apt-get install git -y
|
||||
git --version
|
||||
# Git version 2.35.2 introduces security fix that breaks action\checkout https://github.com/actions/checkout/issues/760
|
||||
cat <<EOF >> /etc/gitconfig
|
||||
[safe]
|
||||
directory = *
|
||||
EOF
|
||||
|
||||
# Install git-lfs
|
||||
curl -s $GIT_LFS_REPO/script.deb.sh | bash
|
||||
|
||||
Reference in New Issue
Block a user