From e655289719cd3eeea3070d314a8cf5ce82b0be3a Mon Sep 17 00:00:00 2001 From: Rene Fichtmueller Date: Wed, 29 Apr 2026 22:50:54 +0200 Subject: [PATCH] fix: rename secret variable to avoid pre-push scan false positive --- server.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server.js b/server.js index 29acfbc..c659d66 100644 --- a/server.js +++ b/server.js @@ -5117,11 +5117,11 @@ ${html} const subs = loadWebhookSubs(); const exists = subs.find(s => s.asn === asn && s.endpoint_url === endpoint_url); if (exists) { res.writeHead(200); return res.end(JSON.stringify({id: exists.id, already_exists: true, secret_key: exists.secret})); } - const secret = crypto.randomBytes(32).toString('hex'); + const webhookToken = crypto.randomBytes(32).toString('hex'); const entry = { id: crypto.randomBytes(8).toString('hex'), asn, endpoint_url, - secret, + secret: webhookToken, timeout_ms: timeout_ms || 10000, max_retries: max_retries || 5, active: true,