Skip to content
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: add support for GitHub JWT auth #262

Merged
merged 17 commits into from
Aug 26, 2020
Merged

feat: add support for GitHub JWT auth #262

merged 17 commits into from
Aug 26, 2020

Conversation

bcoe
Copy link
Contributor

@bcoe bcoe commented Aug 26, 2020

This PR assumes that we will set three secrets:

  • APP_ID: path to a file that contains a GitHub application ID.
  • INSTALLATION: path to a file that contains an installation ID.
  • GITHUB_PRIVATE_KEY: path to a file that contains the PEM secret for a GitHub application.

If these environments are found set, then rather than using magic-proxy, it grabs a JWT for our application and uses it to authenticate.

Note: I'm not sure of a great way to write tests for this, but I've done an end to end testing, and confirmed the approach works.

@google-cla google-cla bot added the cla: yes This human has signed the Contributor License Agreement. label Aug 26, 2020
releasetool/__main__.py Outdated Show resolved Hide resolved
releasetool/commands/publish_reporter.py Outdated Show resolved Hide resolved
releasetool/github.py Outdated Show resolved Hide resolved
Copy link
Contributor

@SurferJeffAtGoogle SurferJeffAtGoogle left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks like solid Python. You're too humble about your Python skills. 😊

releasetool/__main__.py Outdated Show resolved Hide resolved
releasetool/__main__.py Show resolved Hide resolved
releasetool/github.py Show resolved Hide resolved
releasetool/github.py Outdated Show resolved Hide resolved
releasetool/commands/publish_reporter.sh Outdated Show resolved Hide resolved
releasetool/github.py Outdated Show resolved Hide resolved
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla: yes This human has signed the Contributor License Agreement.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants