Skip to content

refactor: permissionsをClaude GitHub App前提の最小限に簡素化 - #7

Merged
ncaq merged 2 commits into
masterfrom
simplify-permissions
Apr 1, 2026
Merged

refactor: permissionsをClaude GitHub App前提の最小限に簡素化#7
ncaq merged 2 commits into
masterfrom
simplify-permissions

Conversation

@ncaq

@ncaq ncaq commented Apr 1, 2026

Copy link
Copy Markdown
Owner

github_tokenを省略するとclaude-code-actionがClaude GitHub Appのトークンを使うため、 ワークフローのpermissionsブロックが制約するgithub.tokenには最小限の権限があれば十分です。 github_tokenを明示する場合は呼び出し側で追加権限を付与する必要がある旨を記載しました。

github_tokenを省略するとclaude-code-actionがClaude GitHub Appのトークンを使うため、
ワークフローのpermissionsブロックが制約するgithub.tokenには最小限の権限があれば十分です。
github_tokenを明示する場合は呼び出し側で追加権限を付与する必要がある旨を記載しました。
@ncaq ncaq self-assigned this Apr 1, 2026
@ncaq ncaq added the Type: Refactoring Includes cleanup label Apr 1, 2026
Copilot AI review requested due to automatic review settings April 1, 2026 12:44
@ncaq ncaq added the Type: CI Changes to CI configuration files and scripts label Apr 1, 2026
@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, you can upgrade your account or add credits to your account and enable them for code reviews in your settings.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Claude GitHub App が発行するトークンをデフォルト利用する前提で、ワークフロー/ドキュメント上の permissions 設定を最小限に寄せ、github_token を明示する場合の注意点を追記するPRです。

Changes:

  • READMEの permissions 説明とサンプルを最小権限に簡素化
  • Reusable workflow / サンプル workflow の permissions を最小構成に更新
  • github_token 明示時に追加権限が必要な旨をREADME・workflowコメントに追記

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 3 comments.

File Description
README.md permissions の推奨設定を最小権限に変更し、github_token 明示時の注意を追記
.github/workflows/review.yml reusable workflow の permissions を最小化し、コメントを更新
.github/workflows/kyosei.yml 呼び出し側ワークフローの permissions を最小化し、コメントを更新

Comment thread .github/workflows/review.yml
Comment thread README.md
Comment thread README.md
Composite Actionでは`github_token`を渡せるのにReusable Workflowでは渡せない制限があったため、
secretsとして追加してComposite Actionにそのまま受け渡すようにしました。

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 3 out of 3 changed files in this pull request and generated 3 comments.

Comment thread README.md
Comment thread .github/workflows/review.yml
Comment thread .github/workflows/review.yml
@ncaq
ncaq merged commit fa1d262 into master Apr 1, 2026
7 checks passed
@ncaq
ncaq deleted the simplify-permissions branch April 1, 2026 13:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Type: CI Changes to CI configuration files and scripts Type: Refactoring Includes cleanup

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants