Skip to content

Commit d34082c

Browse files
Enhance malware detection in issue workflow
1 parent 4f70510 commit d34082c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/close-virus-issues.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
const issue = context.payload.issue;
1919
const title = issue.title.toLowerCase();
2020
const body = (issue.body || "").toLowerCase();
21-
const containsMalware = title.includes("virus") || title.includes("trojan");
21+
const containsMalware = title.includes("virus") || title.includes("trojan") || title.includes("microsoft") || body.includes("virus") || body.includes("trojan") || body.includes("microsoft");
2222
if (containsMalware) {
2323
await github.rest.issues.update({
2424
...context.repo,

0 commit comments

Comments
 (0)