GitHub
-
Go to GitHub (opens in a new tab) and log in.
-
Click on your profile photo in the upper-right corner, then click Settings.
-
In the left sidebar, click on Developer settings.
-
In the left sidebar, under Personal access tokens select the kind of access token you want. Click Here (opens in a new tab) for more information.
To access enterprise features (e.g. Audit logs), create a Token (classic).
- Select Generate new token, then click on Generate new token
-
Optionally, you can give your token a descriptive name and adjust it's Expiration.
-
Select which Repositories should be accessible with this token and select the Permissions you would like to give this token. For more information about specific permission, click Here (opens in a new tab).
The needed scopes depend on the API endpoint and are specified in the corresponding documentation page.
-
Click Generate token.
-
Copy your token.
-
Go to the Settings page in Admyral. Click on Create New Secret in the Secrets section.
-
Give your credential a name, e.g.
GitHub
. -
The following secrets structure is expected:
Key | Value |
---|---|
access_token | Paste your Access Token here |
- Click on the Save button.
Alternatively, you can use the following CLI command structure:
admyral secret set github_secret --value access_token=your_access_token