[Windows] Update Kotlin installer hash check (#9469)

This commit is contained in:
Erik Bershel
2024-03-07 17:11:44 +01:00
committed by GitHub
parent 61df9288f9
commit cde48c99e6

View File

@@ -14,11 +14,7 @@ $kotlinDownloadUrl = Resolve-GithubReleaseAssetUrl `
$kotlinArchivePath = Invoke-DownloadWithRetry $kotlinDownloadUrl
#region Supply chain security
$externalHash = Get-ChecksumFromGithubRelease `
-Repo "JetBrains/kotlin" `
-Version "$kotlinVersion" `
-FileName (Split-Path $kotlinDownloadUrl -Leaf) `
-HashType "SHA256"
$externalHash = Get-Content $(Invoke-DownloadWithRetry "$kotlinDownloadUrl.sha256")
Test-FileChecksum $kotlinArchivePath -ExpectedSHA256Sum $externalHash
#endregion