Skip to content

Commit 87ff50b

Browse files
committed
feat: authenticate with github app instllation
- [x] add ability to authenticate with GitHub App Installation - [x] add tests for GitHub App Installation - [x] add more tests for env vars repo updates to match standards: - [x] alphabetize :allthethings: - [x] add requirements-test.txt to version our testing dependencies - [x] update Makefile to point linting commands to our linter configs that the GitHub Action workflows use - [x] add linter configs - [x] add checkov exemptions to Dockerfile - custom user - can't do, need root for GitHub action workspace access - [x] update README, splitting authentication section - [x] change .pylintrc to .python-lint (pylint default config file) - [x] updated all examples to default to read contents permissions - [x] linted files I'd highly suggest this be a major version change as there are breaking changes: - [x] standardize boolean environment variables (true or false) - [x] drop GITHUB_SERVER_URL and instead use GITHUB_ENTERPRISE_URL for enterprise customers (matches our other repos) Signed-off-by: jmeridth <[email protected]>
1 parent 41c10f3 commit 87ff50b

37 files changed

+1395
-195
lines changed

.env-example

+12-3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,13 @@
1-
GH_TOKEN = " "
2-
SEARCH_QUERY = "repo:owner/repo is:open is:issue"
3-
LABELS_TO_MEASURE = "waiting-for-review,waiting-for-manager"
1+
GH_APP_ID=""
2+
GH_APP_INSTALLATION_ID=""
3+
GH_APP_PRIVATE_KEY=""
4+
GH_ENTERPRISE_URL = ""
5+
GH_TOKEN = ""
6+
HIDE_AUTHOR = "false"
7+
HIDE_LABEL_METRICS = "false"
8+
HIDE_TIME_TO_ANSWER = "false"
9+
HIDE_TIME_TO_CLOSE = "false"
10+
HIDE_TIME_TO_FIRST_RESPONSE = "false"
411
IGNORE_USERS = "user1,user2"
12+
LABELS_TO_MEASURE = "waiting-for-review,waiting-for-manager"
13+
SEARCH_QUERY = "repo:owner/repo is:open is:issue"

.github/linters/.flake8

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
[flake8]
2+
exclude = venv,.venv,.git,__pycache__
3+
extend-ignore = C901
4+
max-line-length = 150
5+
statistics = True

.github/linters/.isort.cfg

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
[settings]
2+
profile = black

0 commit comments

Comments
 (0)