Skip to content

Commit 44ef6d8

Browse files
authored
Merge pull request #16 from vihangm/releases_token
bug: Use the github token when fetching releases
2 parents 95b39d0 + de36cee commit 44ef6d8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mr.bash

+1-1
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ function mr::downloadRunner {
206206
if [[ -z "$url" ]]; then
207207
run::exists jq || return $?
208208
url="$(
209-
run::logFailed curl -Lsm 3 --retry 1 https://api.github.com/repos/actions/runner/releases/latest \
209+
run::logFailed curl -Lsm 3 --retry 1 -H "Authorization: Bearer ${MR_GITHUB_PAT}" https://api.github.com/repos/actions/runner/releases/latest \
210210
| jq -Mcre '.assets[].browser_download_url|select(test("linux-x64-[^-]+\\.tar\\.gz"))'
211211
)" || return $?
212212
fi

0 commit comments

Comments
 (0)