mirror of
https://github.com/binaricat/Netcatty.git
synced 2026-11-25 01:40:45 +00:00
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:
1 parent
1428e9754c
commit
52f92330ad
3 files changed
+69
-59
No files matched your search
@@ -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('; ')}`
|
||||
);
|
||||
Reference in new issue
Block a user