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
- Navigate to https://github.com/.
- Log into your GitHub account and click your profile picture at the top-right corner of the screen.
- Click .
- Click .
- Click Generate New Token.
- Enter a name for the token and select an expiry time that suits your testing requirements.
- Under Repository access, select Only selected repositories.
- Click Select Repositories, and then select the repository to be used for the Edge Compute Stack service.
- Under Permissions, expand Repository Permissions. Scroll down to find Contents and select Access: Read Only.
- 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.