-
Notifications
You must be signed in to change notification settings - Fork 49
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add documentation about the GitHub token
- Loading branch information
Showing
7 changed files
with
43 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
<h1> | ||
<img alt="logo" src="./assets/codeowners-validator-logo-black.png" width="10px" /> | ||
</h1> | ||
|
||
Welcome to the codeowner-validator documentation. | ||
|
||
+ [**GitHub Action**](./gh-action.md) - list of supported providers and any gotchas | ||
+ [**GitHub personal access token**](./gh-token.md) | ||
+ [**Release**](./release.md) |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
[← back to docs](./README.md) | ||
|
||
# GitHub personal access token | ||
|
||
The [valid_owner.go](./../internal/check/valid_owner.go) check requires the GitHub personal access token because of those reasons: | ||
|
||
1. Information about organization teams and their repositories are not publicly available. | ||
2. If you are setting GitHub Enterprise base URL then an unauthorized error can occur. | ||
3. For unauthenticated requests, the rate limit allows for up to 60 requests per hour. Unauthenticated requests are associated with the originating IP address. In big organization where you have a lot of call between you infrastructure server and GitHub site it is easy to exceed that quota. | ||
|
||
Instruction for creating a token can be found [here](https://help.github.com/articles/creating-a-personal-access-token-for-the-command-line/#creating-a-token). The token only need to have the readonly scopes but the scope differ between public and private repositories. | ||
|
||
#### For the public repositories you should select `public_repo` and `read:org`: | ||
|
||
![token-public.png](./assets/token-public.png) | ||
|
||
#### For the private repositories you should select `repo` and `read:org`: | ||
|
||
![token-public.png](./assets/token-private.png) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters