-
Notifications
You must be signed in to change notification settings - Fork 60
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: authenticate with github app installation and repo standardization #221
Conversation
fe5862e
to
87ff50b
Compare
@zkoppert yes, I agree, this is HUGE. I feel a "rip the band aid off" moment allows for it. There is still an opportunity to split the auth and env stuff out like we do in cleanowners but this gets us in right direction. If you want me to split repo standardization and GitHub App Installation auth, please let me know. |
- [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]>
87ff50b
to
4fdfe82
Compare
The size of this change is daunting. There are 3 whole new files that are contributing:
|
Whoa. Looking into the issues. |
Co-authored-by: Zack Koppert <[email protected]>
more to come Signed-off-by: jmeridth <[email protected]>
iterating through fixes. there are a decent amount. |
Signed-off-by: jmeridth <[email protected]>
Signed-off-by: jmeridth <[email protected]>
Signed-off-by: jmeridth <[email protected]>
replace comments with variables, causes ensured maintenance of meaning Signed-off-by: jmeridth <[email protected]>
Signed-off-by: jmeridth <[email protected]>
Signed-off-by: jmeridth <[email protected]>
Signed-off-by: jmeridth <[email protected]>
- will reassess later Signed-off-by: jmeridth <[email protected]>
👀 |
""" | ||
Get the environment variables for use in the script. | ||
|
||
Returns EnvVars object with all environment variables | ||
""" | ||
if not test: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Gold!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🚀
Proposed Changes
I'd highly suggest this be a major version bump (3.0.0) as there are breaking changes:
Willing to go the deprecation route but this is the simpler path.
GitHub App Installation:
Repo updates to match standards:
Readiness Checklist
Author/Contributor
make lint
and fix any issues that you have introducedmake test
and ensure you have test coverage for the lines you are introducingReviewer
bug
,documentation
,enhancement
,infrastructure
, orbreaking