octokit / webhooks.js

GitHub webhook events toolset for Node.js
MIT License
308 stars 79 forks source link

fix: explicitly check that `request.body` is a string #1010

Closed didley closed 5 months ago

didley commented 5 months ago

Resolves #1009


Before the change?

After the change?

Pull request checklist

Does this introduce a breaking change?

Please see our docs on breaking changes to help!


UPDATE: This may be being fixed upstream within @fastify/middie, if attempting to reproduce this bug please use a Middie <=8.3.0. I think the @octokit/webhooks patch should still be completed as this could be quite difficult to diagnose if the user is on a <=8.3.0 of Middie or if they have constraints for upgrading it.

github-actions[bot] commented 5 months ago

👋 Hi! Thank you for this contribution! Just to let you know, our GitHub SDK team does a round of issue and PR reviews twice a week, every Monday and Friday! We have a process in place for prioritizing and responding to your input. Because you are a part of this community please feel free to comment, add to, or pick up any issues/PRs that are labled with Status: Up for grabs. You & others like you are the reason all of this works! So thank you & happy coding! 🚀

wolfy1339 commented 5 months ago

Is it possible to test that this won't break in a future release

didley commented 5 months ago

@wolfy1339 I have added a unit test covering this case. Is there anything else you had in mind to ensue this won't break a future release?

github-actions[bot] commented 5 months ago

:tada: This PR is included in version 13.2.7 :tada:

The release is available on:

Your semantic-release bot :package::rocket:

didley commented 5 months ago

Thank you @G-Rath and everyone else involved!