This commit is contained in:
2024-06-18 21:29:10 +01:00
parent d6bdbc59f2
commit 7d98ffba62

View File

@@ -68,7 +68,7 @@ app.post('/api', (req, res) => {
// Verify the secret
const hmac = crypto.createHmac('sha256', GITEA_SECRET);
const digest = `sha256=${hmac.update(payload).digest('hex')}`;
const digest = `${hmac.update(payload).digest('hex')}`;
// Ensure both buffers have the same length before comparing
const bufferSignature = Buffer.from(signature);