icon

Authenticate with GitHub OAuth

Adds your GitHub OAuth config to the .netrc file.

This Step writes GitHub OAuth configs to the .netrc file, so every single network call pointing to github.com or api.github.com hosts will be accessed with the given Personal Access Token and the GitHub username. Please note that this Step must come before any other git Step in your Workflow, therefore, it can be, for example, the first Step in your Workflow.

Configuring the Step

  1. Add your GitHub username in the respective input field.
  2. Add your GitHub Personal Access Token in the respective input field. To get your GitHub Personal Access Token, follow these steps:
  3. Login to your GitHub account.
  4. In the upper-right corner of any page, click your profile photo, then click Settings.
  5. In the left sidebar, click Personal access tokens.
  6. Click Generate new token.
  7. Give your token a descriptive name.
  8. Select the scopes, or permissions you’d like to grant this token with.
  9. Click Generate token.

Useful links

Related Steps

Similar steps

Adds your Bitbucket OAuth configuration to the .netrc file.

The step authenticates with AWS using an OIDC token.

The step authenticates with GCP using a service account key.

Adds your authentication configuration to the .netrc file.