diff --git a/lib/platform/gitlab/__snapshots__/index.spec.ts.snap b/lib/platform/gitlab/__snapshots__/index.spec.ts.snap index 52da16cfd55d296f36fd487b2e4ca3c90e78eee3..35ceb8d874a802ff7146bee2af9bc083804ec5f0 100644 --- a/lib/platform/gitlab/__snapshots__/index.spec.ts.snap +++ b/lib/platform/gitlab/__snapshots__/index.spec.ts.snap @@ -6,8 +6,8 @@ Array [ "headers": Object { "accept": "application/json", "accept-encoding": "gzip, deflate", + "authorization": "Bearer abc123", "host": "gitlab.com", - "private-token": "abc123", "user-agent": "https://github.com/renovatebot/renovate", }, "method": "GET", @@ -17,8 +17,8 @@ Array [ "headers": Object { "accept": "application/json", "accept-encoding": "gzip, deflate", + "authorization": "Bearer abc123", "host": "gitlab.com", - "private-token": "abc123", "user-agent": "https://github.com/renovatebot/renovate", }, "method": "PUT", @@ -33,8 +33,8 @@ Array [ "headers": Object { "accept": "application/json", "accept-encoding": "gzip, deflate", + "authorization": "Bearer abc123", "host": "gitlab.com", - "private-token": "abc123", "user-agent": "https://github.com/renovatebot/renovate", }, "method": "GET", @@ -44,8 +44,8 @@ Array [ "headers": Object { "accept": "application/json", "accept-encoding": "gzip, deflate", + "authorization": "Bearer abc123", "host": "gitlab.com", - "private-token": "abc123", "user-agent": "https://github.com/renovatebot/renovate", }, "method": "PUT", @@ -55,8 +55,8 @@ Array [ "headers": Object { "accept": "application/json", "accept-encoding": "gzip, deflate", + "authorization": "Bearer abc123", "host": "gitlab.com", - "private-token": "abc123", "user-agent": "https://github.com/renovatebot/renovate", }, "method": "GET", @@ -66,8 +66,8 @@ Array [ "headers": Object { "accept": "application/json", "accept-encoding": "gzip, deflate", + "authorization": "Bearer abc123", "host": "gitlab.com", - "private-token": "abc123", "user-agent": "https://github.com/renovatebot/renovate", }, "method": "PUT", @@ -82,8 +82,8 @@ Array [ "headers": Object { "accept": "application/json", "accept-encoding": "gzip, deflate", + "authorization": "Bearer abc123", "host": "gitlab.com", - "private-token": "abc123", "user-agent": "https://github.com/renovatebot/renovate", }, "method": "GET", @@ -98,8 +98,8 @@ Array [ "headers": Object { "accept": "application/json", "accept-encoding": "gzip, deflate", + "authorization": "Bearer abc123", "host": "gitlab.com", - "private-token": "abc123", "user-agent": "https://github.com/renovatebot/renovate", }, "method": "GET", @@ -109,8 +109,8 @@ Array [ "headers": Object { "accept": "application/json", "accept-encoding": "gzip, deflate", + "authorization": "Bearer abc123", "host": "gitlab.com", - "private-token": "abc123", "user-agent": "https://github.com/renovatebot/renovate", }, "method": "PUT", @@ -120,8 +120,8 @@ Array [ "headers": Object { "accept": "application/json", "accept-encoding": "gzip, deflate", + "authorization": "Bearer abc123", "host": "gitlab.com", - "private-token": "abc123", "user-agent": "https://github.com/renovatebot/renovate", }, "method": "GET", @@ -131,8 +131,8 @@ Array [ "headers": Object { "accept": "application/json", "accept-encoding": "gzip, deflate", + "authorization": "Bearer abc123", "host": "gitlab.com", - "private-token": "abc123", "user-agent": "https://github.com/renovatebot/renovate", }, "method": "PUT", @@ -150,10 +150,10 @@ Array [ "headers": Object { "accept": "application/json", "accept-encoding": "gzip, deflate", + "authorization": "Bearer abc123", "content-length": "142", "content-type": "application/json", "host": "gitlab.com", - "private-token": "abc123", "user-agent": "https://github.com/renovatebot/renovate", }, "method": "POST", @@ -163,8 +163,8 @@ Array [ "headers": Object { "accept": "application/json", "accept-encoding": "gzip, deflate", + "authorization": "Bearer abc123", "host": "gitlab.com", - "private-token": "abc123", "user-agent": "https://github.com/renovatebot/renovate", }, "method": "GET", @@ -174,8 +174,8 @@ Array [ "headers": Object { "accept": "application/json", "accept-encoding": "gzip, deflate", + "authorization": "Bearer abc123", "host": "gitlab.com", - "private-token": "abc123", "user-agent": "https://github.com/renovatebot/renovate", }, "method": "GET", @@ -186,10 +186,10 @@ Array [ "headers": Object { "accept": "application/json", "accept-encoding": "gzip, deflate", + "authorization": "Bearer abc123", "content-length": "72", "content-type": "application/json", "host": "gitlab.com", - "private-token": "abc123", "user-agent": "https://github.com/renovatebot/renovate", }, "method": "PUT", @@ -215,10 +215,10 @@ Array [ "headers": Object { "accept": "application/json", "accept-encoding": "gzip, deflate", + "authorization": "Bearer abc123", "content-length": "144", "content-type": "application/json", "host": "gitlab.com", - "private-token": "abc123", "user-agent": "https://github.com/renovatebot/renovate", }, "method": "POST", @@ -244,10 +244,10 @@ Array [ "headers": Object { "accept": "application/json", "accept-encoding": "gzip, deflate", + "authorization": "Bearer abc123", "content-length": "142", "content-type": "application/json", "host": "gitlab.com", - "private-token": "abc123", "user-agent": "https://github.com/renovatebot/renovate", }, "method": "POST", @@ -262,8 +262,8 @@ Array [ "headers": Object { "accept": "application/json", "accept-encoding": "gzip, deflate", + "authorization": "Bearer abc123", "host": "gitlab.com", - "private-token": "abc123", "user-agent": "https://github.com/renovatebot/renovate", }, "method": "GET", @@ -274,10 +274,10 @@ Array [ "headers": Object { "accept": "application/json", "accept-encoding": "gzip, deflate", + "authorization": "Bearer abc123", "content-length": "25", "content-type": "application/json", "host": "gitlab.com", - "private-token": "abc123", "user-agent": "https://github.com/renovatebot/renovate", }, "method": "PUT", @@ -292,8 +292,8 @@ Array [ "headers": Object { "accept": "application/json", "accept-encoding": "gzip, deflate", + "authorization": "Bearer abc123", "host": "gitlab.com", - "private-token": "abc123", "user-agent": "https://github.com/renovatebot/renovate", }, "method": "GET", @@ -303,8 +303,8 @@ Array [ "headers": Object { "accept": "application/json", "accept-encoding": "gzip, deflate", + "authorization": "Bearer abc123", "host": "gitlab.com", - "private-token": "abc123", "user-agent": "https://github.com/renovatebot/renovate", }, "method": "GET", @@ -315,10 +315,10 @@ Array [ "headers": Object { "accept": "application/json", "accept-encoding": "gzip, deflate", + "authorization": "Bearer abc123", "content-length": "44", "content-type": "application/json", "host": "gitlab.com", - "private-token": "abc123", "user-agent": "https://github.com/renovatebot/renovate", }, "method": "POST", @@ -333,8 +333,8 @@ Array [ "headers": Object { "accept": "application/json", "accept-encoding": "gzip, deflate", + "authorization": "Bearer abc123", "host": "gitlab.com", - "private-token": "abc123", "user-agent": "https://github.com/renovatebot/renovate", }, "method": "GET", @@ -344,8 +344,8 @@ Array [ "headers": Object { "accept": "application/json", "accept-encoding": "gzip, deflate", + "authorization": "Bearer abc123", "host": "gitlab.com", - "private-token": "abc123", "user-agent": "https://github.com/renovatebot/renovate", }, "method": "GET", @@ -356,10 +356,10 @@ Array [ "headers": Object { "accept": "application/json", "accept-encoding": "gzip, deflate", + "authorization": "Bearer abc123", "content-length": "44", "content-type": "application/json", "host": "gitlab.com", - "private-token": "abc123", "user-agent": "https://github.com/renovatebot/renovate", }, "method": "PUT", @@ -374,8 +374,8 @@ Array [ "headers": Object { "accept": "application/json", "accept-encoding": "gzip, deflate", + "authorization": "Bearer abc123", "host": "gitlab.com", - "private-token": "abc123", "user-agent": "https://github.com/renovatebot/renovate", }, "method": "GET", @@ -385,8 +385,8 @@ Array [ "headers": Object { "accept": "application/json", "accept-encoding": "gzip, deflate", + "authorization": "Bearer abc123", "host": "gitlab.com", - "private-token": "abc123", "user-agent": "https://github.com/renovatebot/renovate", }, "method": "GET", @@ -401,8 +401,8 @@ Array [ "headers": Object { "accept": "application/json", "accept-encoding": "gzip, deflate", + "authorization": "Bearer abc123", "host": "gitlab.com", - "private-token": "abc123", "user-agent": "https://github.com/renovatebot/renovate", }, "method": "GET", @@ -412,8 +412,8 @@ Array [ "headers": Object { "accept": "application/json", "accept-encoding": "gzip, deflate", + "authorization": "Bearer abc123", "host": "gitlab.com", - "private-token": "abc123", "user-agent": "https://github.com/renovatebot/renovate", }, "method": "GET", @@ -428,8 +428,8 @@ Array [ "headers": Object { "accept": "application/json", "accept-encoding": "gzip, deflate", + "authorization": "Bearer abc123", "host": "gitlab.com", - "private-token": "abc123", "user-agent": "https://github.com/renovatebot/renovate", }, "method": "GET", @@ -439,8 +439,8 @@ Array [ "headers": Object { "accept": "application/json", "accept-encoding": "gzip, deflate", + "authorization": "Bearer abc123", "host": "gitlab.com", - "private-token": "abc123", "user-agent": "https://github.com/renovatebot/renovate", }, "method": "GET", @@ -450,8 +450,8 @@ Array [ "headers": Object { "accept": "application/json", "accept-encoding": "gzip, deflate", + "authorization": "Bearer abc123", "host": "gitlab.com", - "private-token": "abc123", "user-agent": "https://github.com/renovatebot/renovate", }, "method": "DELETE", @@ -466,8 +466,8 @@ Array [ "headers": Object { "accept": "application/json", "accept-encoding": "gzip, deflate", + "authorization": "Bearer abc123", "host": "gitlab.com", - "private-token": "abc123", "user-agent": "https://github.com/renovatebot/renovate", }, "method": "GET", @@ -477,8 +477,8 @@ Array [ "headers": Object { "accept": "application/json", "accept-encoding": "gzip, deflate", + "authorization": "Bearer abc123", "host": "gitlab.com", - "private-token": "abc123", "user-agent": "https://github.com/renovatebot/renovate", }, "method": "GET", @@ -488,8 +488,8 @@ Array [ "headers": Object { "accept": "application/json", "accept-encoding": "gzip, deflate", + "authorization": "Bearer abc123", "host": "gitlab.com", - "private-token": "abc123", "user-agent": "https://github.com/renovatebot/renovate", }, "method": "DELETE", @@ -504,8 +504,8 @@ Array [ "headers": Object { "accept": "application/json", "accept-encoding": "gzip, deflate", + "authorization": "Bearer abc123", "host": "gitlab.com", - "private-token": "abc123", "user-agent": "https://github.com/renovatebot/renovate", }, "method": "GET", @@ -516,10 +516,10 @@ Array [ "headers": Object { "accept": "application/json", "accept-encoding": "gzip, deflate", + "authorization": "Bearer abc123", "content-length": "49", "content-type": "application/json", "host": "gitlab.com", - "private-token": "abc123", "user-agent": "https://github.com/renovatebot/renovate", }, "method": "POST", @@ -534,8 +534,8 @@ Array [ "headers": Object { "accept": "application/json", "accept-encoding": "gzip, deflate", + "authorization": "Bearer abc123", "host": "gitlab.com", - "private-token": "abc123", "user-agent": "https://github.com/renovatebot/renovate", }, "method": "GET", @@ -545,8 +545,8 @@ Array [ "headers": Object { "accept": "application/json", "accept-encoding": "gzip, deflate", + "authorization": "Bearer abc123", "host": "gitlab.com", - "private-token": "abc123", "user-agent": "https://github.com/renovatebot/renovate", }, "method": "GET", @@ -561,8 +561,8 @@ Array [ "headers": Object { "accept": "application/json", "accept-encoding": "gzip, deflate", + "authorization": "Bearer abc123", "host": "gitlab.com", - "private-token": "abc123", "user-agent": "https://github.com/renovatebot/renovate", }, "method": "GET", @@ -572,8 +572,8 @@ Array [ "headers": Object { "accept": "application/json", "accept-encoding": "gzip, deflate", + "authorization": "Bearer abc123", "host": "gitlab.com", - "private-token": "abc123", "user-agent": "https://github.com/renovatebot/renovate", }, "method": "GET", @@ -584,10 +584,10 @@ Array [ "headers": Object { "accept": "application/json", "accept-encoding": "gzip, deflate", + "authorization": "Bearer abc123", "content-length": "49", "content-type": "application/json", "host": "gitlab.com", - "private-token": "abc123", "user-agent": "https://github.com/renovatebot/renovate", }, "method": "PUT", @@ -602,8 +602,8 @@ Array [ "headers": Object { "accept": "application/json", "accept-encoding": "gzip, deflate", + "authorization": "Bearer abc123", "host": "gitlab.com", - "private-token": "abc123", "user-agent": "https://github.com/renovatebot/renovate", }, "method": "GET", @@ -614,10 +614,10 @@ Array [ "headers": Object { "accept": "application/json", "accept-encoding": "gzip, deflate", + "authorization": "Bearer abc123", "content-length": "23", "content-type": "application/json", "host": "gitlab.com", - "private-token": "abc123", "user-agent": "https://github.com/renovatebot/renovate", }, "method": "PUT", @@ -632,8 +632,8 @@ Array [ "headers": Object { "accept": "application/json", "accept-encoding": "gzip, deflate", + "authorization": "Bearer abc123", "host": "gitlab.com", - "private-token": "abc123", "user-agent": "https://github.com/renovatebot/renovate", }, "method": "GET", @@ -643,8 +643,8 @@ Array [ "headers": Object { "accept": "application/json", "accept-encoding": "gzip, deflate", + "authorization": "Bearer abc123", "host": "gitlab.com", - "private-token": "abc123", "user-agent": "https://github.com/renovatebot/renovate", }, "method": "GET", @@ -659,8 +659,8 @@ Array [ "headers": Object { "accept": "application/json", "accept-encoding": "gzip, deflate", + "authorization": "Bearer abc123", "host": "gitlab.com", - "private-token": "abc123", "user-agent": "https://github.com/renovatebot/renovate", }, "method": "GET", @@ -675,8 +675,8 @@ Array [ "headers": Object { "accept": "application/json", "accept-encoding": "gzip, deflate", + "authorization": "Bearer abc123", "host": "gitlab.com", - "private-token": "abc123", "user-agent": "https://github.com/renovatebot/renovate", }, "method": "GET", @@ -691,8 +691,8 @@ Array [ "headers": Object { "accept": "application/json", "accept-encoding": "gzip, deflate", + "authorization": "Bearer abc123", "host": "gitlab.com", - "private-token": "abc123", "user-agent": "https://github.com/renovatebot/renovate", }, "method": "GET", @@ -707,8 +707,8 @@ Array [ "headers": Object { "accept": "application/json", "accept-encoding": "gzip, deflate", + "authorization": "Bearer abc123", "host": "gitlab.com", - "private-token": "abc123", "user-agent": "https://github.com/renovatebot/renovate", }, "method": "GET", @@ -723,8 +723,8 @@ Array [ "headers": Object { "accept": "application/json", "accept-encoding": "gzip, deflate", + "authorization": "Bearer abc123", "host": "gitlab.com", - "private-token": "abc123", "user-agent": "https://github.com/renovatebot/renovate", }, "method": "GET", @@ -739,8 +739,8 @@ Array [ "headers": Object { "accept": "application/json", "accept-encoding": "gzip, deflate", + "authorization": "Bearer abc123", "host": "gitlab.com", - "private-token": "abc123", "user-agent": "https://github.com/renovatebot/renovate", }, "method": "GET", @@ -750,8 +750,8 @@ Array [ "headers": Object { "accept": "application/json", "accept-encoding": "gzip, deflate", + "authorization": "Bearer abc123", "host": "gitlab.com", - "private-token": "abc123", "user-agent": "https://github.com/renovatebot/renovate", }, "method": "GET", @@ -788,8 +788,8 @@ Array [ "headers": Object { "accept": "application/json", "accept-encoding": "gzip, deflate", + "authorization": "Bearer abc123", "host": "gitlab.com", - "private-token": "abc123", "user-agent": "https://github.com/renovatebot/renovate", }, "method": "GET", @@ -799,8 +799,8 @@ Array [ "headers": Object { "accept": "application/json", "accept-encoding": "gzip, deflate", + "authorization": "Bearer abc123", "host": "gitlab.com", - "private-token": "abc123", "user-agent": "https://github.com/renovatebot/renovate", }, "method": "GET", @@ -810,8 +810,8 @@ Array [ "headers": Object { "accept": "application/json", "accept-encoding": "gzip, deflate", + "authorization": "Bearer abc123", "host": "gitlab.com", - "private-token": "abc123", "user-agent": "https://github.com/renovatebot/renovate", }, "method": "GET", @@ -821,8 +821,8 @@ Array [ "headers": Object { "accept": "application/json", "accept-encoding": "gzip, deflate", + "authorization": "Bearer abc123", "host": "gitlab.com", - "private-token": "abc123", "user-agent": "https://github.com/renovatebot/renovate", }, "method": "GET", @@ -837,8 +837,8 @@ Array [ "headers": Object { "accept": "application/json", "accept-encoding": "gzip, deflate", + "authorization": "Bearer abc123", "host": "gitlab.com", - "private-token": "abc123", "user-agent": "https://github.com/renovatebot/renovate", }, "method": "GET", @@ -848,8 +848,8 @@ Array [ "headers": Object { "accept": "application/json", "accept-encoding": "gzip, deflate", + "authorization": "Bearer abc123", "host": "gitlab.com", - "private-token": "abc123", "user-agent": "https://github.com/renovatebot/renovate", }, "method": "GET", @@ -864,8 +864,8 @@ Array [ "headers": Object { "accept": "application/json", "accept-encoding": "gzip, deflate", + "authorization": "Bearer abc123", "host": "gitlab.com", - "private-token": "abc123", "user-agent": "https://github.com/renovatebot/renovate", }, "method": "GET", @@ -875,8 +875,8 @@ Array [ "headers": Object { "accept": "application/json", "accept-encoding": "gzip, deflate", + "authorization": "Bearer abc123", "host": "gitlab.com", - "private-token": "abc123", "user-agent": "https://github.com/renovatebot/renovate", }, "method": "GET", @@ -891,8 +891,8 @@ Array [ "headers": Object { "accept": "application/json", "accept-encoding": "gzip, deflate", + "authorization": "Bearer abc123", "host": "gitlab.com", - "private-token": "abc123", "user-agent": "https://github.com/renovatebot/renovate", }, "method": "GET", @@ -902,8 +902,8 @@ Array [ "headers": Object { "accept": "application/json", "accept-encoding": "gzip, deflate", + "authorization": "Bearer abc123", "host": "gitlab.com", - "private-token": "abc123", "user-agent": "https://github.com/renovatebot/renovate", }, "method": "GET", @@ -918,8 +918,8 @@ Array [ "headers": Object { "accept": "application/json", "accept-encoding": "gzip, deflate", + "authorization": "Bearer abc123", "host": "gitlab.com", - "private-token": "abc123", "user-agent": "https://github.com/renovatebot/renovate", }, "method": "GET", @@ -929,8 +929,8 @@ Array [ "headers": Object { "accept": "application/json", "accept-encoding": "gzip, deflate", + "authorization": "Bearer abc123", "host": "gitlab.com", - "private-token": "abc123", "user-agent": "https://github.com/renovatebot/renovate", }, "method": "GET", @@ -945,8 +945,8 @@ Array [ "headers": Object { "accept": "application/json", "accept-encoding": "gzip, deflate", + "authorization": "Bearer abc123", "host": "gitlab.com", - "private-token": "abc123", "user-agent": "https://github.com/renovatebot/renovate", }, "method": "GET", @@ -956,8 +956,8 @@ Array [ "headers": Object { "accept": "application/json", "accept-encoding": "gzip, deflate", + "authorization": "Bearer abc123", "host": "gitlab.com", - "private-token": "abc123", "user-agent": "https://github.com/renovatebot/renovate", }, "method": "GET", @@ -972,8 +972,8 @@ Array [ "headers": Object { "accept": "application/json", "accept-encoding": "gzip, deflate", + "authorization": "Bearer abc123", "host": "gitlab.com", - "private-token": "abc123", "user-agent": "https://github.com/renovatebot/renovate", }, "method": "GET", @@ -983,8 +983,8 @@ Array [ "headers": Object { "accept": "application/json", "accept-encoding": "gzip, deflate", + "authorization": "Bearer abc123", "host": "gitlab.com", - "private-token": "abc123", "user-agent": "https://github.com/renovatebot/renovate", }, "method": "GET", @@ -999,8 +999,8 @@ Array [ "headers": Object { "accept": "application/json", "accept-encoding": "gzip, deflate", + "authorization": "Bearer abc123", "host": "gitlab.com", - "private-token": "abc123", "user-agent": "https://github.com/renovatebot/renovate", }, "method": "GET", @@ -1015,8 +1015,8 @@ Array [ "headers": Object { "accept": "application/json", "accept-encoding": "gzip, deflate", + "authorization": "Bearer abc123", "host": "gitlab.com", - "private-token": "abc123", "user-agent": "https://github.com/renovatebot/renovate", }, "method": "GET", @@ -1026,8 +1026,8 @@ Array [ "headers": Object { "accept": "application/json", "accept-encoding": "gzip, deflate", + "authorization": "Bearer abc123", "host": "gitlab.com", - "private-token": "abc123", "user-agent": "https://github.com/renovatebot/renovate", }, "method": "GET", @@ -1042,8 +1042,8 @@ Array [ "headers": Object { "accept": "application/json", "accept-encoding": "gzip, deflate", + "authorization": "Bearer abc123", "host": "gitlab.com", - "private-token": "abc123", "user-agent": "https://github.com/renovatebot/renovate", }, "method": "GET", @@ -1053,8 +1053,8 @@ Array [ "headers": Object { "accept": "application/json", "accept-encoding": "gzip, deflate", + "authorization": "Bearer abc123", "host": "gitlab.com", - "private-token": "abc123", "user-agent": "https://github.com/renovatebot/renovate", }, "method": "GET", @@ -1069,8 +1069,8 @@ Array [ "headers": Object { "accept": "application/json", "accept-encoding": "gzip, deflate", + "authorization": "Bearer abc123", "host": "gitlab.com", - "private-token": "abc123", "user-agent": "https://github.com/renovatebot/renovate", }, "method": "GET", @@ -1080,8 +1080,8 @@ Array [ "headers": Object { "accept": "application/json", "accept-encoding": "gzip, deflate", + "authorization": "Bearer abc123", "host": "gitlab.com", - "private-token": "abc123", "user-agent": "https://github.com/renovatebot/renovate", }, "method": "GET", @@ -1118,8 +1118,8 @@ Array [ "headers": Object { "accept": "application/json", "accept-encoding": "gzip, deflate", + "authorization": "Bearer abc123", "host": "gitlab.com", - "private-token": "abc123", "user-agent": "https://github.com/renovatebot/renovate", }, "method": "GET", @@ -1156,8 +1156,8 @@ Array [ "headers": Object { "accept": "application/json", "accept-encoding": "gzip, deflate", + "authorization": "Bearer abc123", "host": "gitlab.com", - "private-token": "abc123", "user-agent": "https://github.com/renovatebot/renovate", }, "method": "GET", @@ -1192,8 +1192,8 @@ Array [ "headers": Object { "accept": "application/json", "accept-encoding": "gzip, deflate", + "authorization": "Bearer abc123", "host": "gitlab.com", - "private-token": "abc123", "user-agent": "https://github.com/renovatebot/renovate", }, "method": "GET", @@ -1203,8 +1203,8 @@ Array [ "headers": Object { "accept": "application/json", "accept-encoding": "gzip, deflate", + "authorization": "Bearer abc123", "host": "gitlab.com", - "private-token": "abc123", "user-agent": "https://github.com/renovatebot/renovate", }, "method": "GET", @@ -1214,8 +1214,8 @@ Array [ "headers": Object { "accept": "application/json", "accept-encoding": "gzip, deflate", + "authorization": "Bearer abc123", "host": "gitlab.com", - "private-token": "abc123", "user-agent": "https://github.com/renovatebot/renovate", }, "method": "GET", @@ -1243,8 +1243,8 @@ Array [ "headers": Object { "accept": "application/json", "accept-encoding": "gzip, deflate", + "authorization": "Bearer abc123", "host": "gitlab.com", - "private-token": "abc123", "user-agent": "https://github.com/renovatebot/renovate", }, "method": "GET", @@ -1259,8 +1259,8 @@ Array [ "headers": Object { "accept": "application/json", "accept-encoding": "gzip, deflate", + "authorization": "Bearer abc123", "host": "gitlab.com", - "private-token": "abc123", "user-agent": "https://github.com/renovatebot/renovate", }, "method": "GET", @@ -1282,8 +1282,8 @@ Array [ "headers": Object { "accept": "application/json", "accept-encoding": "gzip, deflate", + "authorization": "Bearer abc123", "host": "gitlab.com", - "private-token": "abc123", "user-agent": "https://github.com/renovatebot/renovate", }, "method": "GET", @@ -1298,8 +1298,8 @@ Array [ "headers": Object { "accept": "application/json", "accept-encoding": "gzip, deflate", + "authorization": "Bearer abc123", "host": "gitlab.com", - "private-token": "abc123", "user-agent": "https://github.com/renovatebot/renovate", }, "method": "GET", @@ -1321,8 +1321,8 @@ Array [ "headers": Object { "accept": "application/json", "accept-encoding": "gzip, deflate", + "authorization": "Bearer some-token", "host": "gitlab.renovatebot.com", - "private-token": "some-token", "user-agent": "https://github.com/renovatebot/renovate", }, "method": "GET", @@ -1344,8 +1344,8 @@ Array [ "headers": Object { "accept": "application/json", "accept-encoding": "gzip, deflate", + "authorization": "Bearer some-token", "host": "gitlab.com", - "private-token": "some-token", "user-agent": "https://github.com/renovatebot/renovate", }, "method": "GET", @@ -1360,8 +1360,8 @@ Array [ "headers": Object { "accept": "application/json", "accept-encoding": "gzip, deflate", + "authorization": "Bearer some-token", "host": "gitlab.com", - "private-token": "some-token", "user-agent": "https://github.com/renovatebot/renovate", }, "method": "GET", @@ -1376,8 +1376,8 @@ Array [ "headers": Object { "accept": "application/json", "accept-encoding": "gzip, deflate", + "authorization": "Bearer abc123", "host": "gitlab.com", - "private-token": "abc123", "user-agent": "https://github.com/renovatebot/renovate", }, "method": "GET", @@ -1392,8 +1392,8 @@ Array [ "headers": Object { "accept": "application/json", "accept-encoding": "gzip, deflate", + "authorization": "Bearer abc123", "host": "gitlab.com", - "private-token": "abc123", "user-agent": "https://github.com/renovatebot/renovate", }, "method": "GET", @@ -1408,8 +1408,8 @@ Array [ "headers": Object { "accept": "application/json", "accept-encoding": "gzip, deflate", + "authorization": "Bearer abc123", "host": "gitlab.com", - "private-token": "abc123", "user-agent": "https://github.com/renovatebot/renovate", }, "method": "GET", @@ -1424,8 +1424,8 @@ Array [ "headers": Object { "accept": "application/json", "accept-encoding": "gzip, deflate", + "authorization": "Bearer abc123", "host": "gitlab.com", - "private-token": "abc123", "user-agent": "https://github.com/renovatebot/renovate", }, "method": "GET", @@ -1440,8 +1440,8 @@ Array [ "headers": Object { "accept": "application/json", "accept-encoding": "gzip, deflate", + "authorization": "Bearer abc123", "host": "gitlab.com", - "private-token": "abc123", "user-agent": "https://github.com/renovatebot/renovate", }, "method": "GET", @@ -1456,8 +1456,8 @@ Array [ "headers": Object { "accept": "application/json", "accept-encoding": "gzip, deflate", + "authorization": "Bearer abc123", "host": "gitlab.com", - "private-token": "abc123", "user-agent": "https://github.com/renovatebot/renovate", }, "method": "GET", @@ -1472,8 +1472,8 @@ Array [ "headers": Object { "accept": "application/json", "accept-encoding": "gzip, deflate", + "authorization": "Bearer abc123", "host": "gitlab.com", - "private-token": "abc123", "user-agent": "https://github.com/renovatebot/renovate", }, "method": "GET", @@ -1488,8 +1488,8 @@ Array [ "headers": Object { "accept": "application/json", "accept-encoding": "gzip, deflate", + "authorization": "Bearer abc123", "host": "gitlab.com", - "private-token": "abc123", "user-agent": "https://github.com/renovatebot/renovate", }, "method": "GET", @@ -1504,8 +1504,8 @@ Array [ "headers": Object { "accept": "application/json", "accept-encoding": "gzip, deflate", + "authorization": "Bearer abc123", "host": "gitlab.com", - "private-token": "abc123", "user-agent": "https://github.com/renovatebot/renovate", }, "method": "GET", @@ -1520,8 +1520,8 @@ Array [ "headers": Object { "accept": "application/json", "accept-encoding": "gzip, deflate", + "authorization": "Bearer abc123", "host": "gitlab.com", - "private-token": "abc123", "user-agent": "https://github.com/renovatebot/renovate", }, "method": "GET", @@ -1531,8 +1531,8 @@ Array [ "headers": Object { "accept": "application/json", "accept-encoding": "gzip, deflate", + "authorization": "Bearer abc123", "host": "gitlab.com", - "private-token": "abc123", "user-agent": "https://github.com/renovatebot/renovate", }, "method": "GET", @@ -1548,10 +1548,10 @@ Array [ "headers": Object { "accept": "application/json", "accept-encoding": "gzip, deflate", + "authorization": "Bearer abc123", "content-length": "36", "content-type": "application/json", "host": "gitlab.com", - "private-token": "abc123", "user-agent": "https://github.com/renovatebot/renovate", }, "method": "PUT", @@ -1566,8 +1566,8 @@ Array [ "headers": Object { "accept": "application/json", "accept-encoding": "gzip, deflate", + "authorization": "Bearer abc123", "host": "gitlab.com", - "private-token": "abc123", "user-agent": "https://github.com/renovatebot/renovate", }, "method": "GET", @@ -1578,10 +1578,10 @@ Array [ "headers": Object { "accept": "application/json", "accept-encoding": "gzip, deflate", + "authorization": "Bearer abc123", "content-length": "101", "content-type": "application/json", "host": "gitlab.com", - "private-token": "abc123", "user-agent": "https://github.com/renovatebot/renovate", }, "method": "POST", @@ -1591,8 +1591,8 @@ Array [ "headers": Object { "accept": "application/json", "accept-encoding": "gzip, deflate", + "authorization": "Bearer abc123", "host": "gitlab.com", - "private-token": "abc123", "user-agent": "https://github.com/renovatebot/renovate", }, "method": "GET", @@ -1607,8 +1607,8 @@ Array [ "headers": Object { "accept": "application/json", "accept-encoding": "gzip, deflate", + "authorization": "Bearer abc123", "host": "gitlab.com", - "private-token": "abc123", "user-agent": "https://github.com/renovatebot/renovate", }, "method": "GET", @@ -1619,10 +1619,10 @@ Array [ "headers": Object { "accept": "application/json", "accept-encoding": "gzip, deflate", + "authorization": "Bearer abc123", "content-length": "100", "content-type": "application/json", "host": "gitlab.com", - "private-token": "abc123", "user-agent": "https://github.com/renovatebot/renovate", }, "method": "POST", @@ -1632,8 +1632,8 @@ Array [ "headers": Object { "accept": "application/json", "accept-encoding": "gzip, deflate", + "authorization": "Bearer abc123", "host": "gitlab.com", - "private-token": "abc123", "user-agent": "https://github.com/renovatebot/renovate", }, "method": "GET", @@ -1648,8 +1648,8 @@ Array [ "headers": Object { "accept": "application/json", "accept-encoding": "gzip, deflate", + "authorization": "Bearer abc123", "host": "gitlab.com", - "private-token": "abc123", "user-agent": "https://github.com/renovatebot/renovate", }, "method": "GET", @@ -1660,10 +1660,10 @@ Array [ "headers": Object { "accept": "application/json", "accept-encoding": "gzip, deflate", + "authorization": "Bearer abc123", "content-length": "101", "content-type": "application/json", "host": "gitlab.com", - "private-token": "abc123", "user-agent": "https://github.com/renovatebot/renovate", }, "method": "POST", @@ -1673,8 +1673,8 @@ Array [ "headers": Object { "accept": "application/json", "accept-encoding": "gzip, deflate", + "authorization": "Bearer abc123", "host": "gitlab.com", - "private-token": "abc123", "user-agent": "https://github.com/renovatebot/renovate", }, "method": "GET", @@ -1690,10 +1690,10 @@ Array [ "headers": Object { "accept": "application/json", "accept-encoding": "gzip, deflate", + "authorization": "Bearer abc123", "content-length": "60", "content-type": "application/json", "host": "gitlab.com", - "private-token": "abc123", "user-agent": "https://github.com/renovatebot/renovate", }, "method": "PUT", @@ -1709,10 +1709,10 @@ Array [ "headers": Object { "accept": "application/json", "accept-encoding": "gzip, deflate", + "authorization": "Bearer abc123", "content-length": "38", "content-type": "application/json", "host": "gitlab.com", - "private-token": "abc123", "user-agent": "https://github.com/renovatebot/renovate", }, "method": "PUT", diff --git a/lib/util/http/__snapshots__/gitlab.spec.ts.snap b/lib/util/http/__snapshots__/gitlab.spec.ts.snap index da14991173d2f0dfdfd3ce114403da5f666947af..563ca3e49f808852d95f949506efc80328eb46b9 100644 --- a/lib/util/http/__snapshots__/gitlab.spec.ts.snap +++ b/lib/util/http/__snapshots__/gitlab.spec.ts.snap @@ -6,8 +6,8 @@ Array [ "headers": Object { "accept": "application/json", "accept-encoding": "gzip, deflate", + "authorization": "Bearer abc123", "host": "gitlab.com", - "private-token": "abc123", "user-agent": "https://github.com/renovatebot/renovate", }, "method": "GET", @@ -22,8 +22,8 @@ Array [ "headers": Object { "accept": "application/json", "accept-encoding": "gzip, deflate", + "authorization": "Bearer abc123", "host": "gitlab.com", - "private-token": "abc123", "user-agent": "https://github.com/renovatebot/renovate", }, "method": "GET", @@ -33,8 +33,8 @@ Array [ "headers": Object { "accept": "application/json", "accept-encoding": "gzip, deflate", + "authorization": "Bearer abc123", "host": "gitlab.com", - "private-token": "abc123", "user-agent": "https://github.com/renovatebot/renovate", }, "method": "GET", @@ -44,8 +44,8 @@ Array [ "headers": Object { "accept": "application/json", "accept-encoding": "gzip, deflate", + "authorization": "Bearer abc123", "host": "gitlab.com", - "private-token": "abc123", "user-agent": "https://github.com/renovatebot/renovate", }, "method": "GET", @@ -60,8 +60,8 @@ Array [ "headers": Object { "accept": "application/json", "accept-encoding": "gzip, deflate", + "authorization": "Bearer abc123", "host": "gitlab.com", - "private-token": "abc123", "user-agent": "https://github.com/renovatebot/renovate", }, "method": "POST", diff --git a/lib/util/http/auth.ts b/lib/util/http/auth.ts index da691f093766f80c851bf19cb3331fa21451cf49..34b38868b130703ab1d4665b4a08977a16b954ad 100644 --- a/lib/util/http/auth.ts +++ b/lib/util/http/auth.ts @@ -3,7 +3,6 @@ import { NormalizedOptions } from 'got'; import { PLATFORM_TYPE_GITEA, PLATFORM_TYPE_GITHUB, - PLATFORM_TYPE_GITLAB, } from '../../constants/platforms'; import { GotOptions } from './types'; @@ -27,9 +26,8 @@ export function applyAuthorization(inOptions: GotOptions): GotOptions { ); } } - } else if (options.hostType === PLATFORM_TYPE_GITLAB) { - options.headers['Private-token'] = options.token; } else { + // For GitLab the bearer token can be a Personal Access Token or an OAuth2 token. options.headers.authorization = `Bearer ${options.token}`; } delete options.token; diff --git a/lib/workers/pr/changelog/__snapshots__/gitlab.spec.ts.snap b/lib/workers/pr/changelog/__snapshots__/gitlab.spec.ts.snap index 33780900373965643d478e8da0b61a606f975e67..e2150863d8873c29bbac9c78a0ef71a81b7c9e1f 100644 --- a/lib/workers/pr/changelog/__snapshots__/gitlab.spec.ts.snap +++ b/lib/workers/pr/changelog/__snapshots__/gitlab.spec.ts.snap @@ -49,8 +49,8 @@ Array [ "headers": Object { "accept": "application/json", "accept-encoding": "gzip, deflate", + "authorization": "Bearer abc", "host": "gitlab.com", - "private-token": "abc", "user-agent": "https://github.com/renovatebot/renovate", }, "method": "GET", @@ -60,8 +60,8 @@ Array [ "headers": Object { "accept": "application/json", "accept-encoding": "gzip, deflate", + "authorization": "Bearer abc", "host": "gitlab.com", - "private-token": "abc", "user-agent": "https://github.com/renovatebot/renovate", }, "method": "GET", @@ -71,8 +71,8 @@ Array [ "headers": Object { "accept": "application/json", "accept-encoding": "gzip, deflate", + "authorization": "Bearer abc", "host": "gitlab.com", - "private-token": "abc", "user-agent": "https://github.com/renovatebot/renovate", }, "method": "GET", @@ -82,8 +82,8 @@ Array [ "headers": Object { "accept": "application/json", "accept-encoding": "gzip, deflate", + "authorization": "Bearer abc", "host": "gitlab.com", - "private-token": "abc", "user-agent": "https://github.com/renovatebot/renovate", }, "method": "GET", @@ -93,8 +93,8 @@ Array [ "headers": Object { "accept": "application/json", "accept-encoding": "gzip, deflate", + "authorization": "Bearer abc", "host": "gitlab.com", - "private-token": "abc", "user-agent": "https://github.com/renovatebot/renovate", }, "method": "GET", @@ -104,8 +104,8 @@ Array [ "headers": Object { "accept": "application/json", "accept-encoding": "gzip, deflate", + "authorization": "Bearer abc", "host": "gitlab.com", - "private-token": "abc", "user-agent": "https://github.com/renovatebot/renovate", }, "method": "GET", @@ -115,8 +115,8 @@ Array [ "headers": Object { "accept": "application/json", "accept-encoding": "gzip, deflate", + "authorization": "Bearer abc", "host": "gitlab.com", - "private-token": "abc", "user-agent": "https://github.com/renovatebot/renovate", }, "method": "GET", @@ -126,8 +126,8 @@ Array [ "headers": Object { "accept": "application/json", "accept-encoding": "gzip, deflate", + "authorization": "Bearer abc", "host": "gitlab.com", - "private-token": "abc", "user-agent": "https://github.com/renovatebot/renovate", }, "method": "GET", @@ -137,8 +137,8 @@ Array [ "headers": Object { "accept": "application/json", "accept-encoding": "gzip, deflate", + "authorization": "Bearer abc", "host": "gitlab.com", - "private-token": "abc", "user-agent": "https://github.com/renovatebot/renovate", }, "method": "GET", @@ -255,8 +255,8 @@ Array [ "headers": Object { "accept": "application/json", "accept-encoding": "gzip, deflate", + "authorization": "Bearer abc", "host": "gitlab.com", - "private-token": "abc", "user-agent": "https://github.com/renovatebot/renovate", }, "method": "GET", @@ -266,8 +266,8 @@ Array [ "headers": Object { "accept": "application/json", "accept-encoding": "gzip, deflate", + "authorization": "Bearer abc", "host": "gitlab.com", - "private-token": "abc", "user-agent": "https://github.com/renovatebot/renovate", }, "method": "GET", @@ -277,8 +277,8 @@ Array [ "headers": Object { "accept": "application/json", "accept-encoding": "gzip, deflate", + "authorization": "Bearer abc", "host": "gitlab.com", - "private-token": "abc", "user-agent": "https://github.com/renovatebot/renovate", }, "method": "GET", @@ -288,8 +288,8 @@ Array [ "headers": Object { "accept": "application/json", "accept-encoding": "gzip, deflate", + "authorization": "Bearer abc", "host": "gitlab.com", - "private-token": "abc", "user-agent": "https://github.com/renovatebot/renovate", }, "method": "GET", @@ -299,8 +299,8 @@ Array [ "headers": Object { "accept": "application/json", "accept-encoding": "gzip, deflate", + "authorization": "Bearer abc", "host": "gitlab.com", - "private-token": "abc", "user-agent": "https://github.com/renovatebot/renovate", }, "method": "GET", @@ -310,8 +310,8 @@ Array [ "headers": Object { "accept": "application/json", "accept-encoding": "gzip, deflate", + "authorization": "Bearer abc", "host": "gitlab.com", - "private-token": "abc", "user-agent": "https://github.com/renovatebot/renovate", }, "method": "GET", @@ -321,8 +321,8 @@ Array [ "headers": Object { "accept": "application/json", "accept-encoding": "gzip, deflate", + "authorization": "Bearer abc", "host": "gitlab.com", - "private-token": "abc", "user-agent": "https://github.com/renovatebot/renovate", }, "method": "GET", @@ -332,8 +332,8 @@ Array [ "headers": Object { "accept": "application/json", "accept-encoding": "gzip, deflate", + "authorization": "Bearer abc", "host": "gitlab.com", - "private-token": "abc", "user-agent": "https://github.com/renovatebot/renovate", }, "method": "GET", @@ -343,8 +343,8 @@ Array [ "headers": Object { "accept": "application/json", "accept-encoding": "gzip, deflate", + "authorization": "Bearer abc", "host": "gitlab.com", - "private-token": "abc", "user-agent": "https://github.com/renovatebot/renovate", }, "method": "GET", @@ -402,8 +402,8 @@ Array [ "headers": Object { "accept": "application/json", "accept-encoding": "gzip, deflate", + "authorization": "Bearer abc", "host": "gitlab.com", - "private-token": "abc", "user-agent": "https://github.com/renovatebot/renovate", }, "method": "GET", @@ -413,8 +413,8 @@ Array [ "headers": Object { "accept": "application/json", "accept-encoding": "gzip, deflate", + "authorization": "Bearer abc", "host": "gitlab.com", - "private-token": "abc", "user-agent": "https://github.com/renovatebot/renovate", }, "method": "GET", @@ -424,8 +424,8 @@ Array [ "headers": Object { "accept": "application/json", "accept-encoding": "gzip, deflate", + "authorization": "Bearer abc", "host": "gitlab.com", - "private-token": "abc", "user-agent": "https://github.com/renovatebot/renovate", }, "method": "GET", @@ -435,8 +435,8 @@ Array [ "headers": Object { "accept": "application/json", "accept-encoding": "gzip, deflate", + "authorization": "Bearer abc", "host": "gitlab.com", - "private-token": "abc", "user-agent": "https://github.com/renovatebot/renovate", }, "method": "GET", @@ -446,8 +446,8 @@ Array [ "headers": Object { "accept": "application/json", "accept-encoding": "gzip, deflate", + "authorization": "Bearer abc", "host": "gitlab.com", - "private-token": "abc", "user-agent": "https://github.com/renovatebot/renovate", }, "method": "GET", @@ -457,8 +457,8 @@ Array [ "headers": Object { "accept": "application/json", "accept-encoding": "gzip, deflate", + "authorization": "Bearer abc", "host": "gitlab.com", - "private-token": "abc", "user-agent": "https://github.com/renovatebot/renovate", }, "method": "GET", @@ -468,8 +468,8 @@ Array [ "headers": Object { "accept": "application/json", "accept-encoding": "gzip, deflate", + "authorization": "Bearer abc", "host": "gitlab.com", - "private-token": "abc", "user-agent": "https://github.com/renovatebot/renovate", }, "method": "GET", @@ -479,8 +479,8 @@ Array [ "headers": Object { "accept": "application/json", "accept-encoding": "gzip, deflate", + "authorization": "Bearer abc", "host": "gitlab.com", - "private-token": "abc", "user-agent": "https://github.com/renovatebot/renovate", }, "method": "GET", @@ -490,8 +490,8 @@ Array [ "headers": Object { "accept": "application/json", "accept-encoding": "gzip, deflate", + "authorization": "Bearer abc", "host": "gitlab.com", - "private-token": "abc", "user-agent": "https://github.com/renovatebot/renovate", }, "method": "GET",