Skip to content

Use Authorization header to authenticate with GitHub API #12

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

Merged
merged 2 commits into from
Nov 8, 2021

Conversation

Totktonada
Copy link
Member

  • Raise an error, when something goes wrong with outcoming HTTP request. So we'll see fails in GitHub UI for webhooks (where delivered payloads are shown).
  • Use the Authorization header for authenticating with GitHub API instead of access_token query parameter.

See https://developer.github.com/changes/2020-02-10-deprecating-auth-through-query-param/ for details.

Fixes #11

This way we'll see a problem in GitHub's UI, where delivered and failed
webhook payloads are shown. Before this change the payload was marked as
successfully delivered and only message like 'Created issue: 400' is
shown in logs on Heroku.

Part of #11
@Totktonada Totktonada requested a review from artembo November 8, 2021 08:54
@Totktonada Totktonada merged commit 92fcae7 into master Nov 8, 2021
@Totktonada Totktonada deleted the Totktonada/gh-11-use-authorization-header branch November 8, 2021 09:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Don't pass access_token as query parameter
3 participants