Skip to content

Commit 7ac4444

Browse files
committed
fix: Restrict PR comment action to main repository only
Add repository check to prevent permission errors when the workflow runs on forked repositories. The comment action will now only execute when triggered from the main vllm-project/aibrix repository. This prevents "Resource not accessible by integration" errors for fork-based pull requests while maintaining functionality for main repository PRs. Signed-off-by: ae86zhizhi <550149470@qq.com>
1 parent 3f42227 commit 7ac4444

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

.github/workflows/complete-testing.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -372,7 +372,7 @@ jobs:
372372
path: test-report.md
373373

374374
- name: Comment PR with test results
375-
if: github.event_name == 'pull_request'
375+
if: github.event_name == 'pull_request' && github.repository == 'vllm-project/aibrix'
376376
uses: actions/github-script@v7
377377
with:
378378
script: |

0 commit comments

Comments
 (0)