Skip to content

Conversation

@jmeridth
Copy link
Member

@jmeridth jmeridth commented Mar 6, 2024

Fixes #89

Pull Request

Proposed Changes

This feature allows users to authenticate with either just a GitHub app or a GitHub App Installation.

  • setup authentication
  • helper function to get integer environment variables without ValueError
  • tests
    • GitHub App Installation passing
    • helper function to get integer environment variables
  • added .venv to flake8 exlusion list (may need to address this another way)
  • alphabetized lists in places (README, .env-sample)

Readiness Checklist

Author/Contributor

  • If documentation is needed for this change, has that been included in this pull request
  • run make lint and fix any issues that you have introduced
  • run make test and ensure you have test coverage for the lines you are introducing

Reviewer

  • Label as either bug, documentation, enhancement, infrastructure, or breaking

@jmeridth jmeridth force-pushed the jm-github-app-token branch 6 times, most recently from 7cdf1b9 to 8945bf5 Compare March 6, 2024 13:51
@jmeridth jmeridth force-pushed the jm-github-app-token branch from 8945bf5 to 2fc75a8 Compare March 7, 2024 02:33
@jmeridth jmeridth marked this pull request as ready for review March 7, 2024 02:34
@jmeridth jmeridth requested a review from zkoppert as a code owner March 7, 2024 02:34
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>
@jmeridth jmeridth force-pushed the jm-github-app-token branch from 2fc75a8 to 07e22a2 Compare March 7, 2024 02:37
@jmeridth
Copy link
Member Author

jmeridth commented Mar 8, 2024

@zkoppert Curious your thoughts on this one. Could we please give a tests a run. Curious if any diff upstream compared to my local runs. Thank you.

@zkoppert zkoppert added the enhancement New feature or request label Mar 8, 2024
@jmeridth
Copy link
Member Author

jmeridth commented Mar 8, 2024

Looking at lint errors.

jmeridth added 2 commits March 8, 2024 12:55
Signed-off-by: jmeridth <jmeridth@gmail.com>
Signed-off-by: jmeridth <jmeridth@gmail.com>
@jmeridth
Copy link
Member Author

jmeridth commented Mar 8, 2024

More linting fixes. In another PR I'm going to get superlinter working with make lint. My make lint passes locally but the SuperLinter GitHub Action is finding more stuff.

Co-authored-by: Zack Koppert <zkoppert@github.com>
@zkoppert
Copy link
Member

zkoppert commented Mar 8, 2024

Great work! Thanks for adding this! It's got me thinking about all the other actions that could use this 😄

@jmeridth
Copy link
Member Author

jmeridth commented Mar 8, 2024

@zkoppert I was thinking the same. The codeowners one is on my list. Want me to do a PR there?

@jmeridth
Copy link
Member Author

jmeridth commented Mar 8, 2024

@zkoppert Was thinking about keeping it DRY somehow also. 🤔

@zkoppert zkoppert merged commit 519672f into github:main Mar 8, 2024
@jmeridth jmeridth deleted the jm-github-app-token branch March 8, 2024 20:06
@zkoppert
Copy link
Member

zkoppert commented Mar 8, 2024

@zkoppert I was thinking the same. The codeowners one is on my list. Want me to do a PR there?

That would be great!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Feature Request] Allow GitHub App Installation Token instead of user PAT Token

2 participants