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: 2 additions & 1 deletion .github/workflows/bot-detection.yml
Original file line number Diff line number Diff line change
Expand Up @@ -336,7 +336,8 @@ jobs:

// Build report
const today = new Date().toISOString().split('T')[0];
let body = `Recently-created accounts often indicate bots, spam accounts, or coordinated attacks.\n\n`;
// Mention a maintainer for timely triage.
let body = `@pelikhan\n\nRecently-created accounts often indicate bots, spam accounts, or coordinated attacks.\n\n`;
Comment on lines +339 to +340
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.

The maintainer handle is hard-coded into the report body. This makes the workflow brittle if maintainers change (or in forks where that user doesn’t exist) and requires a code change to update. Consider making the mention configurable via a repo variable/env (and only prepending it when set) so it can be updated without editing the workflow and can be disabled when desired.

Suggested change
// Mention a maintainer for timely triage.
let body = `@pelikhan\n\nRecently-created accounts often indicate bots, spam accounts, or coordinated attacks.\n\n`;
// Mention a maintainer for timely triage (configurable via env).
const maintainerHandle = process.env.BOT_DETECTION_MAINTAINER;
let body = '';
if (maintainerHandle) {
body += `@${maintainerHandle}\n\n`;
}
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