Skip to content

Commit

Permalink
doc(github): add guide for scope auth
Browse files Browse the repository at this point in the history
  • Loading branch information
idiotWu committed Apr 25, 2024
1 parent 674da0c commit b01b9dd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/pages/api-apps/github.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ The GitHub App is crafted to refine your GitHub workflow, offering efficient man

### Get Github Access Token

Follow this guide to get your GitHub access token: https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/managing-your-personal-access-tokens
Follow this guide to get your GitHub access token: https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/managing-your-personal-access-tokens. You may need to grant the `repo` scope so that NPi can access repositories on behalf of you. ([Read more about scopes](https://docs.github.com/en/apps/oauth-apps/building-oauth-apps/scopes-for-oauth-apps))

### Authorization

Expand Down
2 changes: 1 addition & 1 deletion docs/pages/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ Confirm server connectivity by running `npi connect test`. If you receive a `ser

### Authorize NPi to access your GitHub account

Generate a new token via [GitHub Tokens Page](https://github.com/settings/tokens) for NPi, and authorize NPi's access to your GitHub account with:
Generate a new token via [GitHub Tokens Page](https://github.com/settings/tokens) for NPi, and authorize NPi's access to your GitHub account with the following command. You may need to grant the `repo` scope so that NPi can access repositories on behalf of you. ([Read more about scopes](https://docs.github.com/en/apps/oauth-apps/building-oauth-apps/scopes-for-oauth-apps))

```sh
npi auth github --access-token YOUR_GITHUB_ACCESS_TOKEN
Expand Down

0 comments on commit b01b9dd

Please sign in to comment.