-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add docs about token permissions (#1829)
* add docs on token perms * bump version * Update with Contents:read * nitpick change
- Loading branch information
Showing
4 changed files
with
26 additions
and
7 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,20 @@ | ||
# GitHub Token Permissions | ||
|
||
You can either choose to use a personal access token (PAT) or a fine-grained access token for the | ||
`github_token` configuration. The token permissions/scopes are different for each type of token. | ||
|
||
|
||
## Fine grained access token permissions | ||
|
||
**Note**: In addition to having a token with the necessary permissions, the user who owns the | ||
token also must have admin access to the organisation or repository. | ||
|
||
For fine-grained access control, the following repository permissions are required: | ||
|
||
- Administration: read | ||
- Contents: read (if you want to check private repositories) | ||
- Pull requests: read (if you want to check private repositories) | ||
|
||
## Personal access token scopes | ||
|
||
If you want to use classic PATS, you will need to select the `repo` scope. |
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 |
---|---|---|
|
@@ -3,7 +3,7 @@ | |
|
||
name: repo-policy-compliance | ||
base: [email protected] | ||
version: '1.9.1' | ||
version: '1.9.2' | ||
summary: Check the repository setup for policy compliance | ||
description: | | ||
Used to check whether a GitHub repository complies with expected policies. | ||
|