Skip to content

Commit

Permalink
[vcpkg] Fix GitLab authentication token (microsoft#34151)
Browse files Browse the repository at this point in the history
  • Loading branch information
bansan85 authored Oct 6, 2023
1 parent 29de898 commit 681e510
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/cmake/vcpkg_from_gitlab.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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)
Expand Down

0 comments on commit 681e510

Please sign in to comment.