소스 검색

fix(ci): use pull_request_target so claude bot gets secrets on fork PRs

MHSanaei 18 시간 전
부모
커밋
d20b549b04
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      .github/workflows/claude-bot.yml

+ 2 - 2
.github/workflows/claude-bot.yml

@@ -5,7 +5,7 @@ on:
     types: [opened]
   issue_comment:
     types: [created]
-  pull_request:
+  pull_request_target:
     types: [opened]
 
 permissions:
@@ -265,7 +265,7 @@ jobs:
               code, run builds/tests, commit, or open a PR.
 
   handle-pr:
-    if: github.event_name == 'pull_request'
+    if: github.event_name == 'pull_request_target'
     runs-on: ubuntu-latest
     permissions:
       contents: read