try onAuth instead
This commit is contained in:
parent
6ead55d543
commit
e00499f08f
@ -21,8 +21,14 @@ const handler = async ({payload}: FirRouteInput<typeof payloadT>) => {
|
|||||||
await git.clone({
|
await git.clone({
|
||||||
fs,
|
fs,
|
||||||
http,
|
http,
|
||||||
headers: {
|
// headers: {
|
||||||
"Authorization": `token ${token}`,
|
// "Authorization": `token ${token}`,
|
||||||
|
// },
|
||||||
|
onAuth() {
|
||||||
|
return {
|
||||||
|
username: token,
|
||||||
|
password: 'x-access-token',
|
||||||
|
}
|
||||||
},
|
},
|
||||||
dir: "./repos",
|
dir: "./repos",
|
||||||
url: manifest.repo,
|
url: manifest.repo,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user