[Ubuntu] Update Kotlin installer hash check (#9468)

This commit is contained in:
Erik Bershel
2024-03-07 21:01:25 +01:00
committed by GitHub
parent 3d6eedc86d
commit 3d9bcaefb1

View File

@@ -13,7 +13,8 @@ download_url=$(resolve_github_release_asset_url "JetBrains/kotlin" "contains(\"k
archive_path=$(download_with_retry "$download_url")
# Supply chain security - Kotlin
kotlin_hash=$(get_checksum_from_github_release "JetBrains/kotlin" "kotlin-compiler-.*\.zip" "latest" "SHA256")
kotlin_hash_file=$(download_with_retry "${download_url}.sha256")
kotlin_hash=$(cat "$kotlin_hash_file")
use_checksum_comparison "$archive_path" "$kotlin_hash"
unzip -qq "$archive_path" -d $KOTLIN_ROOT