From de36cee85624a424b1adaff60966a28577eefc00 Mon Sep 17 00:00:00 2001 From: Vihang Mehta Date: Tue, 6 Aug 2024 10:43:39 -0700 Subject: [PATCH] bug: Use the github token when fetching releases Signed-off-by: Vihang Mehta --- mr.bash | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mr.bash b/mr.bash index 09f4f21..1c99d55 100755 --- a/mr.bash +++ b/mr.bash @@ -206,7 +206,7 @@ function mr::downloadRunner { if [[ -z "$url" ]]; then run::exists jq || return $? url="$( - run::logFailed curl -Lsm 3 --retry 1 https://api.github.com/repos/actions/runner/releases/latest \ + run::logFailed curl -Lsm 3 --retry 1 -H "Authorization: Bearer ${MR_GITHUB_PAT}" https://api.github.com/repos/actions/runner/releases/latest \ | jq -Mcre '.assets[].browser_download_url|select(test("linux-x64-[^-]+\\.tar\\.gz"))' )" || return $? fi