Skip to content

Commit 95d70c4

Browse files
makerjackieclaude
andcommitted
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

File tree

.github/workflows/release.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ on:
55
tags:
66
- 'v*'
77

8+
permissions:
9+
contents: write
10+
811
jobs:
912
build:
1013
runs-on: macos-latest

0 commit comments

Comments
 (0)