====== 建立 GitHub Token 方式 ====== 因為看到 GitHub 2021/06/28 之後就無法使用密碼進行存取, 必須改用 Token 來存取, 因此找了一下建立 Token 的方式, 以下是建立一個可以存取公開 Repo 的 Token 程序. - 登入 Github 網頁 - 點右上角個人 ICON 出現選單後點 Settings {{:tech:github_gen_token01.png?250|}} - 在 Settings 的畫面左邊選單選 Developer settings {{:tech:github_gen_token02.png?400|}} - 在 Developer settings 的畫面左邊選單選 Personal access tokens, 並點右上方 **Generate new token** 來建立新的 Token * {{:tech:github_gen_token03.png|}} - 在 Note 輸入這 Token 的名稱 Exp. iii-org-app , 在 Select scopes 選擇這 Token 的使用權限 Exp. 只要存取公開的 repo , 勾選完畢後點最底下的 **Generate token** 建立 Token * {{:tech:github_gen_token04.png|}} - 看到建立出來的 Token 先點右邊 ICON 複製出來, 否則之後就無法查到 * {{:tech:github_gen_token05.png|}} - 再來就可以在需要輸入 GitHub password 的地方輸入這個 Token 來取代 password, 當然若要完全取代 password 就必須建立 Token 時將 scopes 全部勾選 ===== 參考網址 ===== * https://docs.github.com/en/github/authenticating-to-github/creating-a-personal-access-token {{tag>k8s github token}}