Skip to content
BENIBIX Learn

Claude Code GitHub Actions

AI⌨️ Claude CodeIntegrations

Also known as claude-code-action, anthropics/claude-code-action@v1, Claude GitHub Action

Claude Code that runs in a GitHub workflow when you write @claude.

Think of it like

It is like a helper who lives in your project. It comes when you call its name.

Example

Jack sees a bug report on GitHub. He comments @claude fix this. A few minutes later, a pull request with the fix is waiting for his review.

Why it matters

The team can give Claude work right from an issue or a pull request. No one has to open a terminal.

Definition

Claude Code GitHub Actions runs Claude Code inside a GitHub workflow. When a comment says @claude, the workflow starts and Claude reads the request. It can answer, change code, push commits or open a pull request. A workflow can also pass its own prompt, so Claude runs on a schedule or on each new pull request. The fastest setup is the /install-github-app command.

Example code

yaml
- uses: anthropics/claude-code-action@v1
  with:
    anthropic_api_key: ${{ secrets.ANTHROPIC_API_KEY }}
The step that runs Claude in a workflow.
A comment starts the workflow, and Claude answers in GitHub.

Common mistake

Thinking it is the same as Code Review. The Action runs in your own workflow. Code Review is a separate service that needs no workflow.

Key takeaways

  1. 1
    Lives in a workflow. In your repository.
  2. 2
    Called by @claude. Or by a prompt.
  3. 3
    Answers in GitHub. Comments, commits, pull requests.

Compare