Generate GitHub Access Tokens

  1. Sign In to GitHub

    Navigate to GitHub and sign in.

    ../_images/github_user_token_1.png
  2. Navigate to Settings

    Click on your profile picture at the top-right corner and go to “Settings.”

    ../_images/github_user_token_3.png

Tip

Using dark mode can reduce eye strain–and make you a pro developer *cough*.

  1. Developer Settings

    Choose “Developer settings.”

    ../_images/github_user_token_4.png
  2. Personal Access Tokens

    Go to “Personal access tokens.”

    ../_images/github_user_token_5.png
  3. Generate New Token

    Click “Generate new token.”

    ../_images/github_user_token_6.png

Warning

The selection of scopes is crucial. Avoid over-scoping permissions and consult the service documentation for required scopes.

  1. Configure Token

    Set the token name, expiration, and required scopes, then click “Generate token.”

    ../_images/github_user_token_7.png
  2. Copy Token

    Copy the generated token.

    ../_images/github_user_token_8.png

Important

Never commit code that contains your tokens. Most services will automatically deactivate compromised tokens.