Tighten spam filter to delete any untrusted zip comments

Attackers switched to hash-named zips with soft bait, so drop the
scoring heuristics and treat any zip/dangerous attachment from
non-maintainers as spam.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
bincxzandCursor committed 2026-07-09 10:06:22 +08:00
1 parent 1428e9754c
commit 52f92330ad
3 files changed
+69 -59

No files matched your search

+2 -2
View File
@@ -35,7 +35,7 @@ jobs:
core.info(JSON.stringify(result, null, 2));
if (!result.spam) {
core.info('Comment did not match the high-confidence spam filter.');
core.info('Comment did not match the zip/dangerous-file spam filter.');
return;
}
@@ -46,5 +46,5 @@ jobs:
});
core.notice(
`Deleted suspected malware spam comment by @${comment.user.login} on #${context.payload.issue.number}: ${result.reasons.join('; ')}`
`Deleted comment with zip/dangerous attachment by @${comment.user.login} on #${context.payload.issue.number}: ${result.reasons.join('; ')}`
);