[vcpkg] Pass AUTHORIZATION_TOKEN to the vcpkg_download_distfile() command which retrieves VCPKG_HEAD_VERSION (#19077)

This commit is contained in:
Sergii Baitala 2021-07-28 03:04:22 +03:00 committed by GitHub
parent d331544d82
commit 1257354a3a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -153,6 +153,7 @@ function(vcpkg_from_github)
vcpkg_download_distfile(archive_version vcpkg_download_distfile(archive_version
URLS "${github_api_url}/repos/${org_name}/${repo_name}/git/refs/heads/${arg_HEAD_REF}" URLS "${github_api_url}/repos/${org_name}/${repo_name}/git/refs/heads/${arg_HEAD_REF}"
FILENAME "${downloaded_file_name}.version" FILENAME "${downloaded_file_name}.version"
${headers_param}
SKIP_SHA512 SKIP_SHA512
ALWAYS_REDOWNLOAD ALWAYS_REDOWNLOAD
) )