chore: Claude ワークフローの権限修正と旧ファイル削除 - #569
Merged
Merged
Conversation
- claude.yml: コラボレーター限定の authorize ジョブを復活し、 contents/pull-requests/issues を write に変更(read のみだとコメント投稿不可) - claude-code-review.yml: pull-requests を write に変更し、 secrets が渡らない fork PR では実行しないよう条件を追加 - 無効化されたまま残っていた claude.yml.disabled を削除 Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WWxo2ZpLgqp8pd54g9qF1f
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
目的
/install-github-appで生成された Claude 用ワークフロー2本を、実際に動作する権限設定に直す。あわせて無効化されたまま残っていた旧ファイルを削除する。変更内容
claude.ymlauthorizeジョブを復活:@claudeを書いた本人がこのリポジトリへの書込権限(admin/maintain/write)を持つ場合だけ後続を実行する。旧claude.yml.disabledに入っていた自前の安全策で、生成物には含まれていなかった。permissionsを write に変更:contents/pull-requests/issues。生成物は全てreadで、この状態では Claude が Issue や PR にコメントを返せない(公式サンプルは write)。claude-code-review.ymlpull-requests: write:レビュー結果を PR にコメントするために必要。pull_requestイベントの fork PR には secrets が渡らないため、必ず失敗する実行を最初から動かさない。削除
claude.yml.disabled:PR Add Claude Code GitHub Workflow #568 でclaude.ymlが新規追加されたため、無効化済みの旧ファイルは不要。検証
npx prettier --check済み(CI の Format ジョブ対策)@claudeとコメントして確認する🤖 Generated with Claude Code
https://claude.ai/code/session_01WWxo2ZpLgqp8pd54g9qF1f