Get secret from env

This commit is contained in:
Brandon Keepers 2016-09-17 10:48:16 -05:00
parent 1dacd7f718
commit 27a9925a6b
No known key found for this signature in database
GPG Key ID: F9533396D5FACBF6
1 changed files with 1 additions and 1 deletions

View File

@ -3,7 +3,7 @@ let http = require('http');
let createHandler = require('github-webhook-handler');
let GitHubApi = require('github');
let webhook = createHandler({path: '/', secret: 'secret'});
let webhook = createHandler({path: '/', secret: process.env.WEBHOOK_SECRET || 'secret'});
let github = new GitHubApi();
github.authenticate({