在Docker构build期间,Grunt需要github令牌

Grunt需要一个github身份validation令牌,而在图像的docker build期间执行。 我如何提供所需的令牌咕噜声? 互动式传球不起作用(因为我已经收录)。

咕噜的消息是:

Running "volo:add:-nostamp:twbs/bootstrap/3.3.2:packages/bootstrap/" (volo) task GitHub auth required for api.github.com/repos/twbs/bootstrap/tags: {"message":"API rate limit exceeded for XXX.XXX.XXX.XXX. (But here's the good news: Authenticated requests get a higher rate limit. Check out the documentation for more details.)","documentation_url":"https://developer.github.com/v3/#rate-limiting"} GitHub access token required to complete action. In a web browser, go to: https://github.com/settings/tokens and generate a new "Personal access token" for volo. Only "repo" and "public_repo" permissions are needed. Paste the generated token below. GitHub Personal Access Token: 

您可以将存储库的URL更改为:

 https://<token>:x-oauth-basic@github.com/MyApp/myapp.git 

更多信息, 请访问: https : //devops.profitbricks.com/tutorials/configure-a-docker-container-to-automatically-pull-from-github-using-oauth/