mirror of
https://github.com/actions/runner-images.git
synced 2026-01-04 01:03:18 +08:00
[ubuntu] Refactor GitHub package download URL function (#8947)
* [ubuntu] Refactor Github Package URL function * Fix function and selenium version * Remove beta/release candidate versions
This commit is contained in:
committed by
GitHub
parent
0ade9f36d3
commit
8437ff3990
@@ -8,13 +8,13 @@
|
||||
source $HELPER_SCRIPTS/install.sh
|
||||
|
||||
# Determine latest ORAS CLI version
|
||||
download_url=$(get_github_package_download_url "oras-project/oras" "endswith(\"linux_amd64.tar.gz\")")
|
||||
download_url=$(resolve_github_release_asset_url "oras-project/oras" "endswith(\"linux_amd64.tar.gz\")" "latest")
|
||||
|
||||
# Download ORAS CLI
|
||||
archive_path=$(download_with_retry "$download_url")
|
||||
|
||||
# Supply chain security - ORAS CLI
|
||||
hash_url=$(get_github_package_download_url "oras-project/oras" "contains(\"checksums.txt\")")
|
||||
hash_url=$(resolve_github_release_asset_url "oras-project/oras" "contains(\"checksums.txt\")" "latest")
|
||||
external_hash=$(get_hash_from_remote_file "${hash_url}" "linux_amd64.tar.gz")
|
||||
use_checksum_comparison "$archive_path" "${external_hash}"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user