Skip to content
This repository was archived by the owner on Oct 3, 2026. It is now read-only.

Add Claude Code GitHub Workflow - #1

Open
kiyeonjeon21 wants to merge 2 commits into
mainfrom
add-claude-github-actions-1772277335323
Open

kiyeonjeon21 wants to merge 2 commits into
mainfrom
add-claude-github-actions-1772277335323

Conversation

@kiyeonjeon21

Copy link
Copy Markdown
Contributor

🤖 Installing Claude Code GitHub App

This PR adds a GitHub Actions workflow that enables Claude Code integration in our repository.

What is Claude Code?

Claude Code is an AI coding agent that can help with:

  • Bug fixes and improvements
  • Documentation updates
  • Implementing new features
  • Code reviews and suggestions
  • Writing tests
  • And more!

How it works

Once this PR is merged, we'll be able to interact with Claude by mentioning @claude in a pull request or issue comment.
Once the workflow is triggered, Claude will analyze the comment and surrounding context, and execute on the request in a GitHub action.

Important Notes

  • This workflow won't take effect until this PR is merged
  • @claude mentions won't work until after the merge is complete
  • The workflow runs automatically whenever Claude is mentioned in PR or issue comments
  • Claude gets access to the entire PR or issue context including files, diffs, and previous comments

Security

  • Our Anthropic API key is securely stored as a GitHub Actions secret
  • Only users with write access to the repository can trigger the workflow
  • All Claude runs are stored in the GitHub Actions run history
  • Claude's default tools are limited to reading/writing files and interacting with our repo by creating comments, branches, and commits.
  • We can add more allowed tools by adding them to the workflow file like:
allowed_tools: Bash(npm install),Bash(npm run build),Bash(npm run lint),Bash(npm run test)

There's more information in the Claude Code action repo.

After merging this PR, let's try mentioning @claude in a comment on any PR to get started!

@kiyeonjeon21 kiyeonjeon21 left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

코드 리뷰

🔴 버그 — pull-requests: write 권한 누락

두 워크플로우 모두 pull-requests: read만 있어서 PR에 코멘트를 달 수 없습니다.

claude-code-review.yml:
```yaml
permissions:
contents: read
pull-requests: write # read → write 로 변경 필요
issues: read
id-token: write
```

claude.yml:
```yaml
permissions:
contents: write # 파일 수정 가능하게
pull-requests: write # read → write 로 변경 필요
issues: write # read → write 로 변경 필요
id-token: write
actions: read
```

🟡 개선 — additional_permissions 중복

claude.yml의 additional_permissions: actions: read는 이미 permissions 블록에 선언되어 있어 중복입니다. 제거해도 됩니다.

🟡 개선 — plugin_marketplaces URL 확인 필요

claude-code-review.yml의 plugin_marketplaces: 'https://github.com/anthropics/claude-code.git' — 공식 마켓플레이스 URL이 맞는지 확인 필요합니다.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant