我试图使用此处描述的方法将我的BitBucket管道部署到Heroku: https://confluence.atlassian.com/bitbucket/deploy-to-heroku-872013667.html
但它失败并出现错误:
remote: ! WARNING:
remote: ! Do not authenticate with username and password using git.
remote: ! Run `heroku login` to update your credentials, then retry
the git command.
我可以通过描述的Heroku Pipeline登录还是有其他解决方案?
答案 0 :(得分:0)
请确保在HEROKU_API_KEY
环境变量中包含实际令牌:
$ heroku authorizations
Heroku CLI login from emily d7cefd7d-6570-40cd-b510-84158323c238 global
# this is _not_ what you need
$ heroku authorizations:info d7cefd7d-6570-40cd-b510-84158323c238
...
Token: f1a255ee-c92c-49ee-8935-c430a7ad6a53 <-- this is what you need
...
替代方法:
$ heroku authorizations --json
...
"access_token": {
"expires_in": null,
"id": "a890965c-bebd-43c7-af17-41225e92d0df",
"token": "f1a255ee-c92c-49ee-8935-c430a7ad6a53" // <-- this is what you need
},
...