Skip to content

Commit

Permalink
Don't supply secret to webhook
Browse files Browse the repository at this point in the history
  • Loading branch information
Ludwig Schubert committed Jan 10, 2018
1 parent 705e541 commit 08520a1
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/build.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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}`);
}
})
Expand Down

0 comments on commit 08520a1

Please sign in to comment.