Skip to content

Commit af93108

Browse files
committed
Fail early if WebHook secret is blank
1 parent ee7a6ec commit af93108

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/WebHook.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ class GitHubWebhook extends EventEmitter2 {
2222
throw new Error('GitHub WebHook requires a port to run on');
2323
}
2424

25-
if (typeof options.secret !== 'string') {
25+
if (typeof options.secret !== 'string' || options.secret === '') {
2626
throw new Error('GitHub WebHook requires a "secret"');
2727
}
2828

0 commit comments

Comments
 (0)