Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions .github/workflows/bot-detection.yml
Original file line number Diff line number Diff line change
Expand Up @@ -149,8 +149,7 @@ jobs:

// Build report
const today = new Date().toISOString().split('T')[0];
let body = `# 🚨 HIGH RISK: Brand New Accounts Detected — ${today}\n\n`;
body += `Recently-created accounts often indicate bots, spam accounts, or coordinated attacks.\n\n`;
body = `Recently-created accounts often indicate bots, spam accounts, or coordinated attacks.\n\n`;
Copy link

Copilot AI Feb 12, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

body is assigned without being declared (body = ...). This creates an implicit global in non-strict mode and will throw in strict mode. Declare it here (e.g., let body = ...) to keep the script scope-safe and reliable.

Suggested change
body = `Recently-created accounts often indicate bots, spam accounts, or coordinated attacks.\n\n`;
let body = `Recently-created accounts often indicate bots, spam accounts, or coordinated attacks.\n\n`;

Copilot uses AI. Check for mistakes.

const sorted = Array.from(highRiskAccounts.entries()).sort((a, b) => a[1].daysOld - b[1].daysOld);

Expand Down