Unauthorized response from GitHub API on Appveyor

后端 未结 2 1397
萌比男神i
萌比男神i 2021-01-23 03:22

We just started with a new project and trying to get CI working via Appveyor. It is an Aurelia web application so we need jspm on the build server.

2条回答
  •  -上瘾入骨i
    2021-01-23 03:55

    It is best to take this token from jspm registry export github after configuring the credentials locally in order to use the exact same algorithm as jspm instead of doing a manual encoding.

    If you really want manual encoding, the auth token actually takes the value of new Buffer(encodeURIComponent(username) + ':' + encodeURIComponent(password)).toString('base64').

提交回复
热议问题