mirror of
https://github.com/actions/runner-images.git
synced 2026-01-07 02:28:54 +08:00
[Windows] Add signature validation (#8390)
This commit is contained in:
@@ -45,8 +45,12 @@ $GeckoDriverArchPath = Start-DownloadWithRetry -Url $GeckoDriverDownloadUrl -Nam
|
||||
Write-Host "Expand Gecko WebDriver archive..."
|
||||
Extract-7Zip -Path $GeckoDriverArchPath -DestinationPath $GeckoDriverPath
|
||||
|
||||
# Validate Gecko WebDriver signature
|
||||
$GeckoDriverSignatureThumbprint = "1326B39C3D5D2CA012F66FB439026F7B59CB1974"
|
||||
Test-FileSignature -FilePath "$GeckoDriverPath/geckodriver.exe" -ExpectedThumbprint $GeckoDriverSignatureThumbprint
|
||||
|
||||
Write-Host "Setting the environment variables..."
|
||||
Add-MachinePathItem -PathItem $GeckoDriverPath
|
||||
setx GeckoWebDriver "$GeckoDriverPath" /M
|
||||
|
||||
Invoke-PesterTests -TestFile "Browsers" -TestName "Firefox"
|
||||
Invoke-PesterTests -TestFile "Browsers" -TestName "Firefox"
|
||||
|
||||
Reference in New Issue
Block a user