mirror of
https://github.com/actions/runner-images.git
synced 2025-12-31 06:18:24 +08:00
[Windows] Add signature validation (#8390)
This commit is contained in:
@@ -6,8 +6,9 @@
|
||||
$LatestReleaseUrl = 'https://api.github.com/repos/microsoft/WinAppDriver/releases/latest'
|
||||
$InstallerUrl = (Invoke-RestMethod -Uri $LatestReleaseUrl).assets.browser_download_url
|
||||
$InstallerName = "WindowsApplicationDriver.msi"
|
||||
$InstallerSignatureThumbprint = "2485A7AFA98E178CB8F30C9838346B514AEA4769"
|
||||
|
||||
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12
|
||||
Install-Binary -Url $InstallerUrl -Name $InstallerName
|
||||
Install-Binary -Url $InstallerUrl -Name $InstallerName -ExpectedSignature $InstallerSignatureThumbprint
|
||||
|
||||
Invoke-PesterTests -TestFile "WinAppDriver" -TestName "WinAppDriver"
|
||||
|
||||
Reference in New Issue
Block a user