mirror of
https://github.com/GeWuYou/GFramework.git
synced 2026-05-12 22:03:30 +08:00
fix(ci): 修复PR报告权限配置问题
- 添加pull-requests写入权限以支持PR评论功能 - 修改pull-request-report条件避免跨仓库触发错误
This commit is contained in:
parent
f3d50c6361
commit
1665e72115
3
.github/workflows/ci.yml
vendored
3
.github/workflows/ci.yml
vendored
@ -8,6 +8,7 @@ on:
|
|||||||
|
|
||||||
permissions:
|
permissions:
|
||||||
contents: read
|
contents: read
|
||||||
|
pull-requests: write
|
||||||
security-events: write
|
security-events: write
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
@ -218,7 +219,7 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
report-path: './ctrf/*.json'
|
report-path: './ctrf/*.json'
|
||||||
github-report: true
|
github-report: true
|
||||||
pull-request-report: true
|
pull-request-report: ${{ github.event.pull_request.head.repo.full_name == github.repository }}
|
||||||
summary-delta-report: true
|
summary-delta-report: true
|
||||||
insights-report: true
|
insights-report: true
|
||||||
flaky-rate-report: true
|
flaky-rate-report: true
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user