Skip to content

Commit 1535116

Browse files
committed
Merge pull request nodejs#17 from nodejs-github-bot/debug-invalid-secret
Log when we've got requests with invalid secrets
2 parents 82f4437 + d45f733 commit 1535116

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/github-events.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ module.exports = (app) => {
1919
const signature = req.headers['x-hub-signature']
2020
if (!signature || signature !== sign(secret, req.raw)) {
2121
res.writeHead(401, 'Invalid Signature')
22+
console.error('! event@%s: %s - invalid signature, returning 401', source, data.action)
2223
return res.end()
2324
}
2425

0 commit comments

Comments
 (0)