fix(ci): 修复PR报告权限配置问题

- 添加pull-requests写入权限以支持PR评论功能
- 修改pull-request-report条件避免跨仓库触发错误
This commit is contained in:
GeWuYou 2026-04-18 15:05:09 +08:00
parent f3d50c6361
commit 1665e72115

View File

@ -8,6 +8,7 @@ on:
permissions:
contents: read
pull-requests: write
security-events: write
jobs:
@ -218,7 +219,7 @@ jobs:
with:
report-path: './ctrf/*.json'
github-report: true
pull-request-report: true
pull-request-report: ${{ github.event.pull_request.head.repo.full_name == github.repository }}
summary-delta-report: true
insights-report: true
flaky-rate-report: true