mirror of
https://github.com/actions/runner-images.git
synced 2025-12-14 22:05:17 +00:00
[macOS] Allow using GitHub PAT to enlarge api requests limit (#4917)
* Use gh api pat * Add gh token to 10.15 * Add github_api_pat for macos-12
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
source ~/utils/utils.sh
|
||||
|
||||
echo Installing PowerShell...
|
||||
psRelease=$(curl -s "https://api.github.com/repos/PowerShell/PowerShell/releases/latest")
|
||||
psRelease=$(curl -H "Authorization: token $API_PAT" -s "https://api.github.com/repos/PowerShell/PowerShell/releases/latest")
|
||||
psDownloadUrl=$(echo $psRelease | jq -r '.assets[].browser_download_url | select(contains("osx-x64.pkg"))' | head -n 1)
|
||||
download_with_retries $psDownloadUrl "/tmp" "powershell.pkg"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user