Skip to content

修复 LGTM 标签工作流权限#57

Merged
pbootcmspro merged 1 commit into
masterfrom
chore/lgtm-label-permissions
Jun 27, 2026
Merged

修复 LGTM 标签工作流权限#57
pbootcmspro merged 1 commit into
masterfrom
chore/lgtm-label-permissions

Conversation

@pbootcmspro

Copy link
Copy Markdown
Owner

变更内容

  • LGTM Label workflow 的 pull-requests 权限从 read 调整为 write
  • 修复 /lgtm 添加 PR label 时的 Resource not accessible by integration 403 错误

原因

GitHub label API 在 PR 上写入 label 时需要 issues=writepull_requests=write 权限。当前 workflow 已有 issues: write,但缺少 pull-requests: write

验证

  • 已使用 Ruby YAML 标准库校验 workflow YAML
  • 分支基于最新 origin/master,仅包含本次权限修复提交

@github-actions github-actions Bot added the needs review Pull request is ready for maintainer review label Jun 27, 2026
@pbootcmspro pbootcmspro added ready to merge Pull request has been reviewed and is ready to merge and removed needs review Pull request is ready for maintainer review labels Jun 27, 2026
@pbootcmspro pbootcmspro merged commit 042140f into master Jun 27, 2026
1 check passed
@pbootcmspro pbootcmspro deleted the chore/lgtm-label-permissions branch June 27, 2026 14:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ready to merge Pull request has been reviewed and is ready to merge

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant