mirror of
https://github.com/actions/runner-images.git
synced 2025-12-18 15:57:17 +00:00
use ssh-keyscan from git
This commit is contained in:
@@ -37,7 +37,7 @@ Choco-Install -PackageName hub
|
|||||||
[Environment]::SetEnvironmentVariable("GCM_INTERACTIVE", "Never", [System.EnvironmentVariableTarget]::Machine)
|
[Environment]::SetEnvironmentVariable("GCM_INTERACTIVE", "Never", [System.EnvironmentVariableTarget]::Machine)
|
||||||
|
|
||||||
if (Test-IsWin16) {
|
if (Test-IsWin16) {
|
||||||
$env:Path += ";$env:ProgramFiles\OpenSSH-Win64"
|
$env:Path += ";$env:ProgramFiles\Git\usr\bin\"
|
||||||
}
|
}
|
||||||
|
|
||||||
# Add well-known SSH host keys to ssh_known_hosts
|
# Add well-known SSH host keys to ssh_known_hosts
|
||||||
|
|||||||
@@ -1,13 +0,0 @@
|
|||||||
################################################################################
|
|
||||||
## 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,7 +245,6 @@
|
|||||||
"{{ 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",
|
||||||
@@ -334,7 +333,6 @@
|
|||||||
"scripts": [
|
"scripts": [
|
||||||
"{{ template_dir }}/scripts/Installers/Install-WindowsUpdates.ps1",
|
"{{ template_dir }}/scripts/Installers/Install-WindowsUpdates.ps1",
|
||||||
"{{ template_dir }}/scripts/Installers/Configure-DynamicPort.ps1",
|
"{{ template_dir }}/scripts/Installers/Configure-DynamicPort.ps1",
|
||||||
"{{ template_dir }}/scripts/Installers/Disable-JITDebugger.ps1",
|
|
||||||
"{{ template_dir }}/scripts/Installers/Configure-Shell.ps1"
|
"{{ template_dir }}/scripts/Installers/Configure-Shell.ps1"
|
||||||
],
|
],
|
||||||
"elevated_user": "{{user `install_user`}}",
|
"elevated_user": "{{user `install_user`}}",
|
||||||
|
|||||||
@@ -331,7 +331,6 @@
|
|||||||
"scripts": [
|
"scripts": [
|
||||||
"{{ template_dir }}/scripts/Installers/Install-WindowsUpdates.ps1",
|
"{{ template_dir }}/scripts/Installers/Install-WindowsUpdates.ps1",
|
||||||
"{{ template_dir }}/scripts/Installers/Configure-DynamicPort.ps1",
|
"{{ template_dir }}/scripts/Installers/Configure-DynamicPort.ps1",
|
||||||
"{{ template_dir }}/scripts/Installers/Disable-JITDebugger.ps1",
|
|
||||||
"{{ template_dir }}/scripts/Installers/Configure-Shell.ps1"
|
"{{ template_dir }}/scripts/Installers/Configure-Shell.ps1"
|
||||||
],
|
],
|
||||||
"elevated_user": "{{user `install_user`}}",
|
"elevated_user": "{{user `install_user`}}",
|
||||||
|
|||||||
Reference in New Issue
Block a user