[macOS] Update Runner installer script to use API PAT (#11774)

This commit is contained in:
Erik Bershel
2025-03-11 15:49:34 +01:00
committed by GitHub
parent 71845af4a0
commit ea2cbb444d

View File

@@ -9,7 +9,7 @@ source ~/utils/utils.sh
AGENT_PATH="/opt/runner-cache" AGENT_PATH="/opt/runner-cache"
arch=$(get_arch) arch=$(get_arch)
download_url=$(resolve_github_release_asset_url "actions/runner" 'test("actions-runner-osx-'"$arch"'-[0-9]+\\.[0-9]{3}\\.[0-9]+\\.tar\\.gz$")' "latest") download_url=$(resolve_github_release_asset_url "actions/runner" 'test("actions-runner-osx-'"$arch"'-[0-9]+\\.[0-9]{3}\\.[0-9]+\\.tar\\.gz$")' "latest" "$API_PAT")
archive_name="${download_url##*/}" archive_name="${download_url##*/}"
archive_path=$(download_with_retry "$download_url") archive_path=$(download_with_retry "$download_url")