Closed nickbradley closed 6 years ago
Really just need to update the webhooks to use a secret value; any thoughts on the right .env
value to use @nickbradley ?
I'm surprised this is happening on sdmm
; this should have been caught by the fulfill(true)
?
const ghAPI = config.getProp(ConfigKey.githubAPI);
if (ghAPI.indexOf('github.com') > 0) {
Log.info('AutoTestRouteHandler::isWebhookFromGitHub(..) - accepted; host is github.com');
return fulfill(true);
}
See #138 ; this will fix this issue when it is rolled out.
Using the DNS lookup value for
api.github.com
might not work since it seems the webhook can be sent from a different host:This was a legitimate webhook from the SECapstone org.