Skip to content

armgit / Cap

Public Imported from GitHub
0

Open source Loom alternative. Beautiful, shareable screen recordings.

ci: verify Scream driver download by SHA-256 before install

Richie McIlroyf7822eb6f1df
diff --git a/.github/workflows/sync-tests.yml b/.github/workflows/sync-tests.yml
index ebc8aee46..90589607c 100644
--- a/.github/workflows/sync-tests.yml
+++ b/.github/workflows/sync-tests.yml
@@ -91,6 +91,9 @@ jobs:
shell: pwsh
run: |
Invoke-WebRequest -Uri https://github.com/duncanthrax/scream/releases/download/4.0/Scream4.0.zip -OutFile Scream4.0.zip
+ $expected = "fa33e25f9a46c61e4e0cd83362c51c3d2a45c6fe4091aad7507e240e40f1a520"
+ $actual = (Get-FileHash -Algorithm SHA256 Scream4.0.zip).Hash.ToLowerInvariant()
+ if ($actual -ne $expected) { throw "Scream4.0.zip SHA-256 mismatch: got $actual, expected $expected" }
Expand-Archive -Path Scream4.0.zip -DestinationPath Scream
$cert = (Get-AuthenticodeSignature Scream\Install\driver\x64\Scream.sys).SignerCertificate
$store = [System.Security.Cryptography.X509Certificates.X509Store]::new("TrustedPublisher", "LocalMachine")