mirror of
https://github.com/actions/runner-images.git
synced 2025-12-11 03:27:05 +00:00
[Ubuntu] Add new git environment variable (#9899)
This commit is contained in:
@@ -6,6 +6,7 @@
|
||||
|
||||
# Source the helpers for use with the script
|
||||
source $HELPER_SCRIPTS/install.sh
|
||||
source $HELPER_SCRIPTS/etc-environment.sh
|
||||
|
||||
GIT_REPO="ppa:git-core/ppa"
|
||||
|
||||
@@ -21,6 +22,10 @@ cat <<EOF >> /etc/gitconfig
|
||||
directory = *
|
||||
EOF
|
||||
|
||||
# Revert to the old behaviour and avoid the Git LFS problems (https://github.blog/2024-05-14-securing-git-addressing-5-new-vulnerabilities/)
|
||||
set_etc_environment_variable "GIT_CLONE_PROTECTION_ACTIVE" 'false'
|
||||
reload_etc_environment
|
||||
|
||||
# Install git-ftp
|
||||
apt-get install git-ftp -y
|
||||
|
||||
|
||||
@@ -244,6 +244,10 @@ Describe "Git" {
|
||||
It "git-ftp" {
|
||||
"git-ftp --version" | Should -ReturnZeroExitCode
|
||||
}
|
||||
|
||||
It "GIT_CLONE_PROTECTION_ACTIVE environment variable should be equal false" {
|
||||
$env:GIT_CLONE_PROTECTION_ACTIVE | Should -BeExactly false
|
||||
}
|
||||
}
|
||||
|
||||
Describe "Git-lfs" {
|
||||
|
||||
Reference in New Issue
Block a user