Skip to content

feat: add support for GitHub JWT auth#262

Merged
bcoe merged 17 commits intomasterfrom
github-jwt-support
Aug 26, 2020
Merged

feat: add support for GitHub JWT auth#262
bcoe merged 17 commits intomasterfrom
github-jwt-support

Conversation

@bcoe
Copy link
Copy Markdown

@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
Comment thread releasetool/github.py
Comment thread releasetool/__main__.py Outdated
Comment thread releasetool/commands/publish_reporter.py Outdated
Comment thread releasetool/github.py Outdated
Copy link
Copy Markdown
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. 😊

Comment thread releasetool/__main__.py Outdated
Comment thread releasetool/__main__.py
Comment thread releasetool/github.py
Comment thread releasetool/github.py Outdated
Comment thread releasetool/commands/publish_reporter.sh Outdated
Comment thread releasetool/github.py Outdated
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