Skip to content

Commit 56c1bfe

Browse files
committed
fix(ci): 为 changes job 显式声明 pull-requests 读权限,修复 Dependabot PR 路径检测必失败
1 parent a1be346 commit 56c1bfe

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

‎.github/workflows/pr-check.yml‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,11 @@ jobs:
1010
# ===========================================================================
1111
changes:
1212
runs-on: ubuntu-latest
13+
# dorny/paths-filter 需要读取 PR 变更文件列表;Dependabot PR 的只读 token
14+
# 默认不含该权限,显式声明后 Dependabot PR 的路径检测才能正常工作
15+
permissions:
16+
contents: read
17+
pull-requests: read
1318
outputs:
1419
client: ${{ steps.filter.outputs.client }}
1520
sync-service: ${{ steps.filter.outputs.sync-service }}

0 commit comments

Comments
 (0)