Skip to content

Commit

Permalink
UPDATE: final
Browse files Browse the repository at this point in the history
  • Loading branch information
seanbirchall committed Nov 24, 2024
1 parent 0c2890f commit 01a4736
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions service/git/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ function verifySignature(req) {
const hmac = crypto.createHmac('sha256', process.env.WEBHOOK_TOKEN);
hmac.update(payload);
const computedSignature = `sha256=${hmac.digest('hex')}`;
console.log('Computed signature: ', computedSignature);
// console.log('Computed signature: ', computedSignature);
return signature === computedSignature;
}

Expand All @@ -47,7 +47,7 @@ app.post('/webhook', async (req, res) => {
return res.status(401).send('Unauthorized');
}

console.log('Payload:', req.body);
// console.log('Payload:', req.body);

// Check the branch
const branch = req.body.ref;
Expand Down

0 comments on commit 01a4736

Please sign in to comment.