download_strategy: use GitHubPackages constant.

This commit is contained in:
Mike McQuaid 2021-03-29 14:35:16 +01:00
parent c3ea073a07
commit 86130efd58
No known key found for this signature in database
GPG Key ID: 48A898132FD8EE70

View File

@ -543,7 +543,7 @@ class CurlGitHubPackagesDownloadStrategy < CurlDownloadStrategy
_, org, repo, = *url.match(GitHubPackages::URL_REGEX)
blob_url = "https://ghcr.io/v2/#{org}/#{repo}/#{name}/blobs/sha256:#{checksum}"
blob_url = "#{GitHubPackages::URL_PREFIX}#{org}/#{repo}/#{name}/blobs/sha256:#{checksum}"
curl_download(blob_url, "--header", "Authorization: Bearer", to: temporary_path)
end
end