Skip to content

Commit

Permalink
[Ubuntu] Update Kotlin installer hash check (#9468)
Browse files Browse the repository at this point in the history
  • Loading branch information
erik-bershel authored Mar 7, 2024
1 parent 3d6eedc commit 3d9bcae
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion images/ubuntu/scripts/build/install-kotlin.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 3d9bcae

Please # to comment.