Skip to content

Fix github-webhook example#140

Open
maikokuppe wants to merge 2 commits intoserverless:masterfrom
maikokuppe:master
Open

Fix github-webhook example#140
maikokuppe wants to merge 2 commits intoserverless:masterfrom
maikokuppe:master

Conversation

@maikokuppe
Copy link
Copy Markdown

@maikokuppe maikokuppe commented Apr 19, 2017

The signature calculation and the logging was not correctly implemented. Take a look at the commits for details.

Applying JSON.stringify to the raw event body does not work (It is not even a JS object).
The event action was not being logged properly. `event.body` is a string and therefore `event.body.action` is always undefined.
@maikokuppe maikokuppe changed the title Calculate github-webhook sig from raw event body Fix github-webhook example Apr 19, 2017
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.

1 participant