Skip to content

Commit

Permalink
Merge pull request #16 from vihangm/releases_token
Browse files Browse the repository at this point in the history
bug: Use the github token when fetching releases
  • Loading branch information
vbem authored Aug 7, 2024
2 parents 95b39d0 + de36cee commit 44ef6d8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mr.bash
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 44ef6d8

Please sign in to comment.