在heroku上验证到github时无法连接到GitHub

7lrncoxx  于 9个月前  发布在  Git
关注(0)|答案(2)|浏览(82)

我在上的Heroku上创建了一个应用程序,在Github上进行身份验证时,它说

Error: remote was closed, authorization was denied, or an authentication message otherwise not received before the window closed..

我该怎么弥补?

eagi6jfj

eagi6jfj1#

我在Google Chrome中也遇到了同样的错误。
错误:远程被关闭,授权被拒绝,或者在窗口关闭之前没有收到身份验证消息。`
我试着在Chrome的隐身模式下打开,它对我很有效。
我又试了一次Firefox,它也工作了!🎉

n7taea2i

n7taea2i2#

我猜这是为了在heroku上推送一个应用程序,所以如果你可以在GitHub市场上使用一个动作来做到这一点:你有这个:heroku deploy
你将不得不设置你的heroku密钥在秘密仓库设置之前,并设置你的工作流程就像这样:

name: Deploy

on:
  push:
    branches:
      - master

jobs:
  build:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v2
      - uses: akhileshns/[email protected] # This is the action
        with:
          heroku_api_key: ${{secrets.HEROKU_API_KEY}}
          heroku_app_name: "YOUR APP's NAME" #Must be unique in Heroku
          heroku_email: "YOUR EMAIL"
          buildpack: "SOME BUILDPACK" #OPTIONAL
          branch: "YOUR_BRANCH" #OPTIONAL and DEFAULT - 'HEAD' (a.k.a your current branch)
          dontuseforce: false #OPTIONAL and DEFAULT - false
          usedocker: false #OPTIONAL and DEFAULT - false
          appdir: "" #OPTIONAL and DEFAULT - "". This is useful if the api you're deploying is in a subfolder

我希望能帮上忙。

相关问题