Skip to content

Commit 381d27d

Browse files
committed
ci:调整 PHP 发布流程权限设置
- 添加工作流级别的 write-all 权限- 移除步骤级别的 releases权限 - 删除不必要的 strategy配置
1 parent 5e2d539 commit 381d27d

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

.github/workflows/php-release.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ on:
66
- master
77
workflow_dispatch: # 允许手动触发
88

9+
permissions: write-all
10+
911
concurrency:
1012
group: "${{ github.workflow }} - ${{ github.head_ref || github.ref }}"
1113
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}
@@ -15,9 +17,6 @@ jobs:
1517
runs-on: ubuntu-latest
1618
permissions:
1719
contents: write
18-
releases: write
19-
strategy:
20-
fail-fast: false # 步骤失败不立即终止
2120

2221
steps:
2322
# 检出代码

0 commit comments

Comments
 (0)