-
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 config options for github_app_* * add github app auth * add/adapt integration tests for github app auth * fix scope of fixture * pass env vars in tox * add unit test to ensure coverage * change tests to run additionally for github app auth * add reason to skipif * skip some tests for github app auth * fix if condition * bump minor version * update docs * Kick off CI build * try out github app on cbartz-org/cbartz-repo-policy-compliance-tests * update README on test repository requirements * skip non-applicable tests * Revert "try out github app on cbartz-org/cbartz-repo-policy-compliance-tests" This reverts commit 5a9ce51. * cleanup * update docs * use AuthMode enum and remove asserts * try out github app on cbartz-org/cbartz-repo-policy-compliance-tests * Revert "try out github app on cbartz-org/cbartz-repo-policy-compliance-tests" This reverts commit 6db8f17.
- Loading branch information
Showing
16 changed files
with
482 additions
and
61 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
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,30 @@ | ||
# GitHub Authentication | ||
|
||
This section describes the GitHub authentication options available for the charm. | ||
|
||
You can either choose to use | ||
|
||
- classic personal access tokens | ||
- fine-grained personal access tokens | ||
- a GitHub app | ||
|
||
for authentication. The latter two options are recommended for better security and access control. | ||
They require the fine-grained permissions as mentioned below. | ||
|
||
**Note**: If you are using a personal access tokens rather than a GitHub app, | ||
the user who owns the token must have administrative access to the organisation or repository, | ||
in addition to having a token with the necessary permissions. | ||
|
||
|
||
## Classic personal access token scopes | ||
|
||
If you want to use classic personal access tokens, you will need to select the `repo` | ||
scope when generating them. | ||
|
||
## Fine grained permissions | ||
|
||
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) |
This file was deleted.
Oops, something went wrong.
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
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.2' | ||
version: '1.10.0' | ||
summary: Check the repository setup for policy compliance | ||
description: | | ||
Used to check whether a GitHub repository complies with expected policies. | ||
|
Oops, something went wrong.