From cde48c99e6ae440b4349cde8a709b62c46327555 Mon Sep 17 00:00:00 2001 From: Erik Bershel <110455084+erik-bershel@users.noreply.github.com> Date: Thu, 7 Mar 2024 17:11:44 +0100 Subject: [PATCH] [Windows] Update Kotlin installer hash check (#9469) --- images/windows/scripts/build/Install-Kotlin.ps1 | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/images/windows/scripts/build/Install-Kotlin.ps1 b/images/windows/scripts/build/Install-Kotlin.ps1 index 091891340..e10c269f6 100644 --- a/images/windows/scripts/build/Install-Kotlin.ps1 +++ b/images/windows/scripts/build/Install-Kotlin.ps1 @@ -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