我今天看到這個錯誤,昨天和之前都在作業。在 Heroku 檔案中看不到任何可能導致此重大更改的更改。
錯誤:
Switched to a new branch 'deploy'
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.
remote: ! See documentation for details: https://devcenter.heroku.com/articles/git#http-git-authentication
fatal: Authentication failed for 'https://git.heroku.com/snapnhd-staging.git/'
主要的.yml
server-deploy:
needs: server-check
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- uses: actions/setup-ruby@v1
with:
ruby-version: '2.6.x'
- name: Determine Heroku App
id: heroku
uses: ./.github/actions/heroku-app
- name: Deploy
env:
HEROKU_API_KEY: ${{ secrets.HEROKU_API_KEY }}
HEROKU_APP: ${{ steps.heroku.outputs.app }}
run: |
git remote add heroku \
https://heroku:[email protected]/$HEROKU_APP.git
git fetch --unshallow origin
git checkout -b deploy
git push heroku deploy:master -f
uj5u.com熱心網友回復:
作為對正在進行的安全調查的回應的一部分,Heroku 強迫所有用戶在 5 月 4 日或前后重置密碼(引自一封可能所有客戶都應該收到的電子郵件):
作為我們加強安全性作業的一部分,并回應status.heroku.com上發布的事件,我們想通知您,我們將于 2022 年 5 月 4 日開始重置用戶帳戶密碼。
這也使 API 令牌無效:
注意:密碼重置也會使您的 API 訪問令牌無效。因此,您為與使用這些令牌的 Heroku 平臺 API 集成而構建的任何自動化都可能導致403 禁止錯誤。為避免停機,您需要按照此處的說明重新啟用直接授權,并更新您的集成以使用新生成的令牌。
鏈接的文章顯示了幾種生成新令牌的方法,所有這些都歸結為 POST 到
https://api.heroku.com/oauth/authorizations
確切的方法部分取決于您是否啟用了多因素身份驗證。如果您還沒有使用 MFA,那么現在是啟用它的好時機。
生成一個新令牌并更新您的 GitHub Actions 配置以使用它。
轉載請註明出處,本文鏈接:https://www.uj5u.com/shujuku/472683.html
