mirror of
https://github.com/actions/runner-images-sangeeth.git
synced 2025-12-20 06:29:50 +00:00
Merge branch 'main' of https://github.com/actions/virtual-environments into main
This commit is contained in:
@@ -3,8 +3,6 @@
|
||||
## Desc: Install Git for Windows
|
||||
################################################################################
|
||||
|
||||
Import-Module -Name ImageHelpers
|
||||
|
||||
function getSimpleValue([string] $url, [string] $filename ) {
|
||||
$fullpath = "${env:Temp}\$filename"
|
||||
Invoke-WebRequest -Uri $url -OutFile $fullpath
|
||||
@@ -38,5 +36,13 @@ Choco-Install -PackageName hub
|
||||
# Disable GCM machine-wide
|
||||
[Environment]::SetEnvironmentVariable("GCM_INTERACTIVE", "Never", [System.EnvironmentVariableTarget]::Machine)
|
||||
|
||||
if (Test-IsWin16) {
|
||||
$env:Path += ";$env:ProgramFiles\OpenSSH-Win64"
|
||||
}
|
||||
|
||||
# Add well-known SSH host keys to ssh_known_hosts
|
||||
ssh-keyscan -t rsa github.com >> "C:\Program Files\Git\etc\ssh\ssh_known_hosts"
|
||||
ssh-keyscan -t rsa ssh.dev.azure.com >> "C:\Program Files\Git\etc\ssh\ssh_known_hosts"
|
||||
|
||||
Invoke-PesterTests -TestFile "Git" -TestName "Git"
|
||||
Invoke-PesterTests -TestFile "CLI.Tools" -TestName "Hub CLI"
|
||||
|
||||
Reference in New Issue
Block a user