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

Fix GitHub events not verifying #875

Merged
merged 6 commits into from
Jan 2, 2024
Merged

Conversation

Half-Shot
Copy link
Contributor

At some point the API on the @octokit/webhooks library changed and it started requiring a full raw payload of the JSON data rather than a parsed body. To get around this, we store the raw string value of the body on the request object after verifying that the fields are valid.

Ideally we'd validate in the verification function, but alas the GitHub function is async and the verifier expects a synchronous throw.

@Half-Shot Half-Shot requested a review from a team as a code owner January 2, 2024 13:47
@Half-Shot Half-Shot added this pull request to the merge queue Jan 2, 2024
Merged via the queue into main with commit c0bb71d Jan 2, 2024
16 checks passed
@Half-Shot Half-Shot deleted the hs/fix-github-not-verifying branch January 2, 2024 15:56
Half-Shot added a commit that referenced this pull request Jan 2, 2024
Bugfixes
--------

- Fix widget pinning to light theme. ([\#873](#873))
- Fix hookshot failing to format API errors.
  Only log a stacktrace of API errors on debug level logging, log limited error on info. ([\#874](#874))
- Fix GitHub events not working due to verification failures. ([\#875](#875))

Internal Changes
----------------

- Fix spelling of "successfully". ([\#869](#869))
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.

None yet

1 participant