From 3a5aea7f4b93ef5f2d23473dc6b1a045a250970e Mon Sep 17 00:00:00 2001 From: YeonGyu-Kim Date: Sat, 3 Jan 2026 11:40:56 +0900 Subject: [PATCH] fix(ci): harden sisyphus-agent workflow condition for push event safety MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Add explicit `github.event_name == 'issue_comment'` check - Add null coalescing (`|| ''`) for safe property access - Use `>-` folded block scalar for better YAML parsing 🤖 GENERATED WITH ASSISTANCE OF [OhMyOpenCode](https://github.com/code-yeongyu/oh-my-opencode) --- .github/workflows/sisyphus-agent.yml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/.github/workflows/sisyphus-agent.yml b/.github/workflows/sisyphus-agent.yml index 53b6ac6..ef2d34e 100644 --- a/.github/workflows/sisyphus-agent.yml +++ b/.github/workflows/sisyphus-agent.yml @@ -15,11 +15,12 @@ jobs: agent: runs-on: ubuntu-latest # @sisyphus-dev-ai mention only (maintainers, exclude self) - if: | + if: >- github.event_name == 'workflow_dispatch' || - (contains(github.event.comment.body, '@sisyphus-dev-ai') && - github.event.comment.user.login != 'sisyphus-dev-ai' && - contains(fromJSON('["OWNER", "MEMBER", "COLLABORATOR"]'), github.event.comment.author_association)) + (github.event_name == 'issue_comment' && + contains(github.event.comment.body || '', '@sisyphus-dev-ai') && + (github.event.comment.user.login || '') != 'sisyphus-dev-ai' && + contains(fromJSON('["OWNER", "MEMBER", "COLLABORATOR"]'), github.event.comment.author_association || '')) permissions: contents: read