From 681e510ff1eb6c237d12dc8b662fbeb1b1dd68bf Mon Sep 17 00:00:00 2001 From: LE GARREC Vincent Date: Sat, 7 Oct 2023 01:47:19 +0200 Subject: [PATCH] [vcpkg] Fix GitLab authentication token (#34151) --- scripts/cmake/vcpkg_from_gitlab.cmake | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/cmake/vcpkg_from_gitlab.cmake b/scripts/cmake/vcpkg_from_gitlab.cmake index b739e5bef3d486..93e8e60bdf7e84 100644 --- a/scripts/cmake/vcpkg_from_gitlab.cmake +++ b/scripts/cmake/vcpkg_from_gitlab.cmake @@ -18,7 +18,7 @@ endfunction() function(vcpkg_from_gitlab) cmake_parse_arguments(PARSE_ARGV 0 "arg" "" - "OUT_SOURCE_PATH;GITLAB_URL;REPO;REF;SHA512;HEAD_REF;FILE_DISAMBIGUATOR" + "OUT_SOURCE_PATH;GITLAB_URL;REPO;REF;SHA512;HEAD_REF;FILE_DISAMBIGUATOR;AUTHORIZATION_TOKEN" "PATCHES") if(DEFINED arg_UNPARSED_ARGUMENTS) @@ -45,7 +45,7 @@ function(vcpkg_from_gitlab) set(headers_param "") if(DEFINED arg_AUTHORIZATION_TOKEN) - set(headers_param "HEADERS" "Authorization: token ${arg_AUTHORIZATION_TOKEN}") + set(headers_param "HEADERS" "PRIVATE-TOKEN: ${arg_AUTHORIZATION_TOKEN}") endif() if(NOT DEFINED arg_REF AND NOT DEFINED arg_HEAD_REF)