aboutsummaryrefslogtreecommitdiffstats
path: root/.github/workflows
diff options
context:
space:
mode:
authorMohamed Bassem <me@mbassem.com>2025-07-12 23:22:27 +0000
committerMohamed Bassem <me@mbassem.com>2025-07-12 23:22:27 +0000
commitba7a87fe68e18dca53cb21ebd1ff0bab7e3ab414 (patch)
treea401b3aaedea952085d40084cb5b990f2f723875 /.github/workflows
parent49648c4cf348a0a14837185ad3a9861f9a2bb8ee (diff)
downloadkarakeep-ba7a87fe68e18dca53cb21ebd1ff0bab7e3ab414.tar.zst
build: Restrict claude actions invocations
Diffstat (limited to '.github/workflows')
-rw-r--r--.github/workflows/claude.yml10
1 files changed, 6 insertions, 4 deletions
diff --git a/.github/workflows/claude.yml b/.github/workflows/claude.yml
index 0bcd5916..c0956e3f 100644
--- a/.github/workflows/claude.yml
+++ b/.github/workflows/claude.yml
@@ -13,10 +13,12 @@ on:
jobs:
claude:
if: |
- (github.event_name == 'issue_comment' && contains(github.event.comment.body, '@claude')) ||
- (github.event_name == 'pull_request_review_comment' && contains(github.event.comment.body, '@claude')) ||
- (github.event_name == 'pull_request_review' && contains(github.event.review.body, '@claude')) ||
- (github.event_name == 'issues' && (contains(github.event.issue.body, '@claude') || contains(github.event.issue.title, '@claude')))
+ github.actor == 'MohamedBassem' && (
+ (github.event_name == 'issue_comment' && contains(github.event.comment.body, '@claude')) ||
+ (github.event_name == 'pull_request_review_comment' && contains(github.event.comment.body, '@claude')) ||
+ (github.event_name == 'pull_request_review' && contains(github.event.review.body, '@claude')) ||
+ (github.event_name == 'issues' && (contains(github.event.issue.body, '@claude') || contains(github.event.issue.title, '@claude')))
+ )
runs-on: ubuntu-latest
permissions:
contents: read