From 0a285c20318cf411f3298f300e8bef274d200cee Mon Sep 17 00:00:00 2001 From: Pavel Iakovenko Date: Tue, 20 Aug 2024 06:44:22 -0700 Subject: [PATCH] [macOS] Use API PAT for downloading actions/cache (#10463) --- images/macos/scripts/build/install-actions-cache.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/images/macos/scripts/build/install-actions-cache.sh b/images/macos/scripts/build/install-actions-cache.sh index 4fbebe3d8..fe5dfb480 100644 --- a/images/macos/scripts/build/install-actions-cache.sh +++ b/images/macos/scripts/build/install-actions-cache.sh @@ -12,7 +12,7 @@ if [[ ! -d $ACTIONS_RUNNER_ACTION_ARCHIVE_CACHE ]]; then mkdir -p $ACTIONS_RUNNER_ACTION_ARCHIVE_CACHE fi -download_url=$(resolve_github_release_asset_url "actions/action-versions" "contains(\"action-versions.tar.gz\")" "latest") +download_url=$(resolve_github_release_asset_url "actions/action-versions" "contains(\"action-versions.tar.gz\")" "latest" "$API_PAT") echo "Downloading action-versions $download_url" archive_path=$(download_with_retry $download_url) tar -xzf $archive_path -C $ACTIONS_RUNNER_ACTION_ARCHIVE_CACHE