mirror of
https://github.com/kata-containers/kata-containers.git
synced 2026-05-05 03:26:24 +00:00
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:
committed by
Fabiano Fidêncio
parent
923f97bc66
commit
e5861cde20
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user