From 08520a10951a54d5155f15486d7b3359f10c5651 Mon Sep 17 00:00:00 2001 From: Ludwig Schubert Date: Wed, 10 Jan 2018 13:39:27 +0100 Subject: [PATCH] Don't supply secret to webhook --- src/build.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/build.js b/src/build.js index 2166635..d0a3ac5 100644 --- a/src/build.js +++ b/src/build.js @@ -25,8 +25,7 @@ function registerWebhooks(repo) { events: [ 'push' ], config: { url: hookURL, - content_type: 'json', - secret: process.env.GITHUB_HOOK_SECRET + content_type: 'json' } }; return repository.createHook(hookOptions) @@ -56,8 +55,7 @@ function getRepoFromURL(name, authorizedURL, targetDir) { if (exists) { console.log(`${repoFolder} already exists, cleaning & pulling.`) return exec(`git -C ${repoFolder} clean -xdf && git -C ${repoFolder} pull`); - } else { - console.log(`${repoFolder} is new, cloning repo.`) + } else `) return exec(`git clone --depth 1 ${authorizedURL} ${repoFolder}`); } })