約1週間前まではGitHubのパスワード認証が使えていたのに、
今日突然使えなくなっていたのでメモ。
GitHubにソースをpushしようとしたが、エラー(403)が出て失敗した。
以下のようなメッセージが出ていた。
remote: Password authentication is temporarily disabled as part of a brownout. Please use a personal access token instead.
remote: Please see https://github.blog/2020-07-30-token-authentication-requirements-for-api-and-git-operations/ for more information.
Creating a personal access token に書かれている手順でPersonal Access Tokenを作成する
Terminalにて、以下のコマンドを実行する:
git config --global --add user.password 取得したトークン
この記事の通りだった↓
GitHubの認証方法の新しいビッグウェーブに乗り遅れるな!
Hi (ユーザ名),
You recently used a password to access the repository at (リポジトリ名) with git using git/2.0 (libgit2 0.26.0).
Basic authentication using a password to Git is deprecated and will soon no longer work. Visit https://github.blog/2020-12-15-token-authentication-requirements-for-git-operations/ for more information around suggested workarounds and removal dates.
Thanks,
The GitHub Team
Crieitは誰でも投稿できるサービスです。 是非記事の投稿をお願いします。どんな軽い内容でも投稿できます。
また、「こんな記事が読みたいけど見つからない!」という方は是非記事投稿リクエストボードへ!
こじんまりと作業ログやメモ、進捗を書き残しておきたい方はボード機能をご利用ください。
ボードとは?
コメント