mirror of
https://github.com/actions/runner-images-sangeeth.git
synced 2026-01-06 18:17:26 +08:00
fix ssh-keyscan Windows Server 2016
This commit is contained in:
13
images/win/scripts/Install-OpenSSH.ps1
Normal file
13
images/win/scripts/Install-OpenSSH.ps1
Normal file
@@ -0,0 +1,13 @@
|
|||||||
|
################################################################################
|
||||||
|
## File: Install-OpenSSH.ps1
|
||||||
|
## Desc: Install OpenSSH-Win64
|
||||||
|
################################################################################
|
||||||
|
|
||||||
|
Write-Host "Download Latest OpenSSH-Win64 archive"
|
||||||
|
$url = 'https://api.github.com/repos/PowerShell/Win32-OpenSSH/releases/latest'
|
||||||
|
$name = 'OpenSSH-Win64.zip'
|
||||||
|
# Explicitly set type to string since match returns array by default
|
||||||
|
[string]$opensshLatest = (Invoke-RestMethod -Uri $url).assets.browser_download_url -match $name
|
||||||
|
$opensshArchivePath = Start-DownloadWithRetry -Url $opensshLatest -Name $name
|
||||||
|
Write-Host "Expand OpenSSH-Win64 archive"
|
||||||
|
Extract-7Zip -Path $opensshArchivePath -DestinationPath $env:ProgramFiles
|
||||||
@@ -245,6 +245,7 @@
|
|||||||
"{{ template_dir }}/scripts/Installers/Install-Sbt.ps1",
|
"{{ template_dir }}/scripts/Installers/Install-Sbt.ps1",
|
||||||
"{{ template_dir }}/scripts/Installers/Install-OpenSSL.ps1",
|
"{{ template_dir }}/scripts/Installers/Install-OpenSSL.ps1",
|
||||||
"{{ template_dir }}/scripts/Installers/Install-Perl.ps1",
|
"{{ template_dir }}/scripts/Installers/Install-Perl.ps1",
|
||||||
|
"{{ template_dir }}/scripts/Installers/Install-OpenSSH.ps1",
|
||||||
"{{ template_dir }}/scripts/Installers/Install-Git.ps1",
|
"{{ template_dir }}/scripts/Installers/Install-Git.ps1",
|
||||||
"{{ template_dir }}/scripts/Installers/Install-GitHub-CLI.ps1",
|
"{{ template_dir }}/scripts/Installers/Install-GitHub-CLI.ps1",
|
||||||
"{{ template_dir }}/scripts/Installers/Install-PHP.ps1",
|
"{{ template_dir }}/scripts/Installers/Install-PHP.ps1",
|
||||||
|
|||||||
Reference in New Issue
Block a user