Update signature.yml #3
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Extract EdgeDriver Certificate Thumbprint | |
on: [push,pull_request] | |
jobs: | |
extract_thumbprint: | |
runs-on: windows-2019 | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Download EdgeDriver | |
run: | | |
Invoke-WebRequest -Uri "https://msedgedriver.azureedge.net/130.0.2849.46/edgedriver_win64.zip" -OutFile "edgedriver.zip" | |
- name: Unzip EdgeDriver | |
run: | | |
Expand-Archive -Path "edgedriver.zip" -DestinationPath "edgedriver" | |
- name: Get Certificate Thumbprint | |
run: | | |
$certPath = "edgedriver/msedgedriver.exe" # Adjust if necessary based on extraction | |
$cert = Get-AuthenticodeSignature -FilePath $certPath | |
Write-Output "Thumbprint: $($cert.SignerCertificate.Thumbprint)" |