fix: 跳过来自 Fork 仓库的 PR 以避免 OIDC Token 获取失败

Co-authored-by: kira1928 <2352900+kira1928@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot]andkira1928 committed 2026-03-19 21:58:04 +00:00
1 parent 77e1ba8e0e
commit 6cd32f4abb
1 file changed
+2 -5
+2 -5
View File
@@ -12,11 +12,8 @@ on:
jobs:
claude-review:
# Optional: Filter by PR author
# if: |
# github.event.pull_request.user.login == 'external-contributor' ||
# github.event.pull_request.user.login == 'new-developer' ||
# github.event.pull_request.author_association == 'FIRST_TIME_CONTRIBUTOR'
# 跳过来自 Fork 仓库的 PR,因为 GitHub 安全机制不允许 Fork PR 获取 OIDC Token
if: github.event.pull_request.head.repo.full_name == github.repository
runs-on: ubuntu-latest
permissions: