tests: use Authorization when GH_TOKEN is set

Same as for other uses of GH_TOKEN, use it when set in order to
avoid rate limiting issues.

Signed-off-by: Manuel Huber <manuelh@nvidia.com>
This commit is contained in:
Manuel Huber
2025-12-02 20:40:29 +00:00
committed by Fabiano Fidêncio
parent 923f97bc66
commit e5861cde20

View File

@@ -633,7 +633,8 @@ function download_github_project_tarball() {
version="${2}"
tarball_name="${3}"
wget https://github.com/${project}/releases/download/${version}/${tarball_name}
wget ${GH_TOKEN:+--header="Authorization: Bearer ${GH_TOKEN}"} \
"https://github.com/${project}/releases/download/${version}/${tarball_name}"
}
# version: The version to be intalled