Commit 95d70c4
fix: 为 GitHub Actions 添加 contents:write 权限
修复 GitHub Actions 发布时的权限错误:
- Resource not accessible by integration
原因:
- GitHub 从 2023 年起默认限制 workflow 权限
- 创建 release 需要显式声明 contents:write 权限
解决方案:
- 在 workflow 顶层添加 permissions.contents: write
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>1 parent 6488a72 commit 95d70c4
1 file changed
Lines changed: 3 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
8 | 11 | | |
9 | 12 | | |
10 | 13 | | |
| |||
0 commit comments