GitHub provides a secure way to create access tokens and activate them for only a single Git repository with specific actions on that repository.

Create a new read-only GitHub personal access token to provide access to Edge Compute Stack hosts to the Git repository.

Prerequisites

Create a Git repository. For details, see the topic Creating a Git Repository in GitHub.

Procedure

  1. Navigate to https://github.com/.
  2. Log into your GitHub account and click your profile picture at the top-right corner of the screen.
  3. Click Settings > Developer Settings.
  4. Click Personal Access Tokens > Fine grained tokens.
  5. Click Generate New Token.
  6. Enter a name for the token and select an expiry time that suits your testing requirements.
  7. Under Repository access, select Only selected repositories.
  8. Click Select Repositories, and then select the repository to be used for the Edge Compute Stack service.
  9. Under Permissions, expand Repository Permissions. Scroll down to find Contents and select Access: Read Only.
  10. Scroll down to the bottom, and then click Generate token.

Results

A token is created.

What to do next

Create a copy of the token to use later, when assigning your Git repository to your Edge Compute Stack site or host.