You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: allow user to use github app to authenticate
This feature allows users to authenticate with either just a GitHub app
or a GitHub App Installation.
- [x] setup authentication
- [x] helper function to get integer environment variables without ValueError
- [x] tests
- [x] GitHub App Installation passing
- [x] helper function to get integer environment variables
- [x] added .venv to flake8 exlusion list (may need to address this another way)
- [x] alphabetized lists in places (README, etc)
Signed-off-by: jmeridth <jmeridth@gmail.com>
|`GH_TOKEN`| true || The GitHub Token used to scan repositories. Must have read access to all repositories you are interested in scanning |
35
-
|`ORGANIZATION`| false || The organization to scan for stale repositories. If no organization is provided, this tool will search through repositories owned by the GH_TOKEN owner |
36
-
|`INACTIVE_DAYS`| true || The number of days used to determine if repository is stale, based on `push` events |
37
-
|`EXEMPT_TOPICS`| false || Comma separated list of topics to exempt from being flagged as stale |
38
-
|`EXEMPT_REPOS`| false || Comma separated list of repositories to exempt from being flagged as stale. Supports Unix shell-style wildcards. ie. `EXEMPT_REPOS = "stale-repos,test-repo,conf-*"`|
39
-
|`GH_ENTERPRISE_URL`| false |`""`| URL of GitHub Enterprise instance to use for auth instead of github.com |
40
-
|`ACTIVITY_METHOD`| false |`"pushed"`| How to get the last active date of the repository. Defaults to `pushed`, which is the last time any branch had a push. Can also be set to `default_branch_updated` to instead measure from the latest commit on the default branch (good for filtering out dependabot ) |
|`ACTIVITY_METHOD`| false |`"pushed"`| How to get the last active date of the repository. Defaults to `pushed`, which is the last time any branch had a push. Can also be set to `default_branch_updated` to instead measure from the latest commit on the default branch (good for filtering out dependabot ) |
|`GH_ENTERPRISE_URL`| false |`""`| URL of GitHub Enterprise instance to use for auth instead of github.com |
39
+
|`GH_TOKEN`| true || The GitHub Token used to scan repositories. Must have read access to all repositories you are interested in scanning |
40
+
|`INACTIVE_DAYS`| true || The number of days used to determine if repository is stale, based on `push` events |
41
+
|`EXEMPT_REPOS`| false || Comma separated list of repositories to exempt from being flagged as stale. Supports Unix shell-style wildcards. ie. `EXEMPT_REPOS = "stale-repos,test-repo,conf-*"`|
42
+
|`EXEMPT_TOPICS`| false || Comma separated list of topics to exempt from being flagged as stale |
43
+
|`ORGANIZATION`| false || The organization to scan for stale repositories. If no organization is provided, this tool will search through repositories owned by the GH_TOKEN owner |
41
44
42
45
### Example workflow
43
46
@@ -171,6 +174,36 @@ jobs:
171
174
INACTIVE_DAYS: 365
172
175
```
173
176
177
+
### Authenticating with a GitHub App and Installation
178
+
179
+
You can authenticate as a GitHub App Installation by providing additional environment variables.
0 commit comments