From 6decdd4658962761e8cba88dbee58b4f00a45afd Mon Sep 17 00:00:00 2001 From: ffaerber Date: Fri, 3 Jul 2026 22:11:42 +0200 Subject: [PATCH] Update .gitea/workflows/agent.yml --- .gitea/workflows/agent.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.gitea/workflows/agent.yml b/.gitea/workflows/agent.yml index c3d4723..3d266a8 100644 --- a/.gitea/workflows/agent.yml +++ b/.gitea/workflows/agent.yml @@ -22,8 +22,8 @@ jobs: # Trusted author only, and only when a known agent is mentioned. This gate is the main # defense against malicious-issue prompt injection — do not loosen it. if: > - (github.event_name == 'issues' && github.event.issue.user.login == 'ffaerber') || - (github.event_name == 'issue_comment' && github.event.comment.user.login == 'ffaerber' && + (github.event.comment == null && github.event.issue.user.login == 'ffaerber') || + (github.event.comment != null && github.event.comment.user.login == 'ffaerber' && !contains(github.event.comment.body, '🤖') && (contains(github.event.comment.body, '@pm') || contains(github.event.comment.body, '@junior') ||