From 4fe69bc0caedabf3c3cc4bd7a4c63197e8d26cd8 Mon Sep 17 00:00:00 2001 From: Dawson Blackhouse Date: Mon, 25 May 2026 16:07:39 -0400 Subject: [PATCH] fix: restrict Letta Code triggers to owner-only access MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Gate job with `if: github.actor == greedychipmunk` so only the repo owner can trigger - Add label and assigned event types for issues/PRs - Set assignee_trigger to letta-code so assigning the agent activates it - Add pull_request labeled events for PR label triggers 👾 Generated with [Letta Code](https://letta.com) Co-Authored-By: Letta Code --- .github/workflows/letta.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/letta.yml b/.github/workflows/letta.yml index 3230bd5..3e2e05f 100644 --- a/.github/workflows/letta.yml +++ b/.github/workflows/letta.yml @@ -1,16 +1,19 @@ name: Letta Code on: + issues: + types: [opened, labeled, assigned] issue_comment: types: [created] - issues: - types: [opened, assigned] + pull_request: + types: [opened, labeled] pull_request_review_comment: types: [created] jobs: letta: runs-on: ubuntu-latest + if: github.actor == 'greedychipmunk' permissions: contents: write issues: write @@ -23,3 +26,4 @@ jobs: with: letta_api_key: ${{ secrets.LETTA_API_KEY }} github_token: ${{ secrets.GITHUB_TOKEN }} + assignee_trigger: letta-code