mirror of
https://github.com/actions/runner-images.git
synced 2025-12-13 12:48:18 +00:00
[macOS] Add new git environment variable (#9900)
This commit is contained in:
@@ -103,3 +103,6 @@ if [[ ! -d "/usr/local/bin" ]];then
|
||||
fi
|
||||
chmod +x $HOME/utils/invoke-tests.sh
|
||||
sudo ln -s $HOME/utils/invoke-tests.sh /usr/local/bin/invoke_tests
|
||||
|
||||
# Revert to the old behaviour and avoid the Git LFS problems (https://github.blog/2024-05-14-securing-git-addressing-5-new-vulnerabilities/)
|
||||
echo "export GIT_CLONE_PROTECTION_ACTIVE=false" >> $HOME/.bashrc
|
||||
|
||||
@@ -9,4 +9,7 @@ Describe "Git" {
|
||||
It "git lfs is installed" -Skip:($os.IsBigSur) {
|
||||
"git lfs version" | Should -ReturnZeroExitCode
|
||||
}
|
||||
It "GIT_CLONE_PROTECTION_ACTIVE environment variable should be equal false" {
|
||||
$env:GIT_CLONE_PROTECTION_ACTIVE | Should -BeExactly false
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user