Learning resourcesReviewed · Anthropic

Claude Code GitHub Actions

This guide explains Claude Code automation for GitHub repository maintainers, but enabling it requires repository administrator access. It covers requests through @claude comments, automatic tasks, review skills and scheduled reports. Runs use GitHub Actions capacity and Claude usage; exact costs and task success rates are unknown.

Researched 25 Nov 2026

In short.

This guide helps GitHub repository maintainers automate Claude Code tasks, but setup requires administrator access and careful configuration of credentials and permissions. It documents interactive requests, automatic prompts, review plugins and scheduled jobs, with several authentication routes. Its strongest fit is a team willing to maintain workflow files and control which people, events and tools can start work. The page establishes intended configuration and behavior; exact costs, measured code quality, reliability and data-retention terms remain unknown. Nothing was executed.

Researched and written by an AI model and checked by a second AI model. How it works

Coverage includes the complete documentation page at [https://code.claude.com/docs/en/github-actions.md], captured on 25 November 2026, including setup, permissions, authentication, operating modes, actor restrictions, examples, costs, troubleshooting, removal and migration notices. All linked pages, repository files, plugin contents, license texts and live release information are excluded. Examples describe intended configurations and behavior; nothing was executed, and performance, actual costs and data-handling terms remain unverified.

The overview

identity

The resource is Anthropic's documentation page for Claude Code GitHub Actions at [https://code.claude.com/docs/en/github-actions.md]. It teaches setup and configuration of anthropics/claude-code-action, which runs Claude Code inside repository workflows and is built on the Claude Agent SDK.

The linked action repository is [https://github.com/anthropics/claude-code-action]. This guide covers the workflow integration; it separately identifies Code Review, cloud sessions and the Agent SDK as related products with different operating models.

assessment

The guide is useful for maintainers who want coding assistance where issues and pull requests already live. Numbered installation instructions, concrete workflow examples and troubleshooting advice provide a practical starting point, while configuration details support more customized automation.

The main commitment is operating a repository integration: choosing authentication, granting access, maintaining workflows and reviewing generated changes. The page provides no measured success rate, latency, code-quality comparison or evidence of developer time saved.

users

Repository maintainers and development teams can use the integration for issue-driven fixes, code questions, pull request review and recurring repository summaries. Beginners receive step-by-step setup guidance; experienced developers receive options for CLI arguments, skills, plugins, tool permissions and organization-wide deployment.

An administrator must enable the integration. On issue and pull request events, triggering users normally need repository write access, so an outside contributor cannot assume that mentioning @claude will start work. Exceptions require explicit configuration.

capabilities

The action is documented to analyze code, implement changes, push commits and turn issues into pull requests. Workflows can respond to @claude requests or supply a prompt that runs automatically on configured GitHub events, including schedules.

Configuration can select a model, limit conversation turns, customize the trigger phrase, supply settings and MCP configuration, invoke repository skills or install marketplace plugins. These are documented capabilities; their correctness on a particular repository was not assessed.

Using it

requirements

Setup requires repository administrator access, enabled GitHub Actions, Claude authentication and GitHub repository access. Quick setup additionally requires local Claude Code and a signed-in GitHub CLI. The default GitHub App authentication requires the workflow permission id-token: write; other permissions depend on the task.

The official Claude GitHub App has a broad shared permission set, including write access to contents, issues, pull requests, actions, workflows, repository creation and repository hooks. GitHub requires accepting the complete set. The guide describes a custom app using Contents, Issues and Pull requests permissions for organizations requiring narrower access; that custom app covers this action only.

mechanism

The workflow's event declarations determine when a job starts. Without a prompt input, the action uses interactive mode and looks for the trigger phrase, @claude by default, in supported issue or pull request content. Progress and results appear on the triggering issue or pull request. With a prompt input, automation mode runs without waiting for a mention and normally writes results to workflow logs.

GitHub access permissions and Claude's tool permissions both matter. A plain-text automation prompt has no shell or GitHub API access until the required tools are allowed through --allowedTools in claude_args or permissions.allow in settings. A skill can grant tools through its allowed-tools metadata.

The checkout step supplies repository files to the runner and is needed before invoking a repository-local skill. The guide recommends a root CLAUDE.md file for project conventions. Tasks using only permitted GitHub API tools can omit checkout.

setup

For quick setup, sign in to the GitHub CLI, start Claude Code in the repository and invoke /install-github-app. Install the Claude GitHub App, select workflows, choose credentials, inspect the proposed changes, and create and merge the generated pull request. Setup can save a secret and push a branch before activation; cancelling finishes any repository change already being written.

For manual setup, install the app, add an authentication secret and copy the linked examples/claude.yml into .github/workflows/. Pass ANTHROPIC_API_KEY through anthropic_api_key, or a subscription token stored as CLAUDE_CODE_OAUTH_TOKEN through claude_code_oauth_token. The page lists Pro, Max, Ultra, Team and Enterprise subscription support and generates the subscription token with claude setup-token.

Organization rollout can use organization-level secrets and reusable workflows. The guide recommends an API key for a shared secret because subscription tokens belong to an individual subscriber. Claude Console workload identity federation can avoid a long-lived secret by exchanging a GitHub OIDC token for API access. Separate linked instructions cover Amazon Bedrock, Google Cloud's Agent Platform and Microsoft Foundry; their detailed setup is outside this page.

example

The mention example checks out the repository with actions/checkout@v6, runs anthropics/claude-code-action@v1 and supplies the API-key secret. A workflow condition filters for comments containing @claude. An authorized user can then request: @claude fix the TypeError in the user dashboard component. The documented interaction includes a comment updated with progress; a successful fix is not established by the example.

The review example installs code-review@claude-plugins-official and invokes /code-review:code-review --comment with the pull request identifier. It also explicitly allows mcp__github_inline_comment__create_inline_comment through claude_args, which starts the server used for inline comments. Omitting --comment leaves findings in the workflow log.

The scheduled example requests a daily summary of yesterday's commits and open issues at 09:00 UTC. It allows the GitHub list_commits and list_issues tools and omits checkout because those tools obtain information through the API. These examples were not executed.

Assessment & evidence

limitations

Quick setup supports repositories hosted on [https://github.com] only. In public repositories, GitHub withholds secrets from fork pull request runs, so the supplied review workflow runs only on branches in the same repository. Its review skill skips drafts, closed pull requests, changes it judges not to need review and pull requests already carrying a Claude comment.

Both operating modes check triggering actors. Allowing a user without write access requires allowed_non_write_users and a supplied github_token. Bot actors require allowed_bots. Scheduled events skip the write-access check, but their attributed actor still undergoes the bot check.

Schedules run only from the default branch, and GitHub disables public-repository schedules after 60 days without activity. Commits made using the default GITHUB_TOKEN do not trigger further workflows; the guide recommends app authentication or a custom app token when subsequent CI runs are needed.

reasoning

Keeping automation in repository workflow files gives maintainers direct control over events, prompts, models and permitted tools. That makes the guide a strong fit when a team already manages GitHub Actions and wants repository-specific behavior. The same flexibility creates ongoing responsibility for credentials, permissions, usage limits and human review.

The examples make configuration concrete, while the actor checks, fork restrictions and output-location details explain why an apparently valid request may produce no comment or run. These operational details support an adoption decision more strongly than any claim about coding performance, which the page does not quantify.

alternatives

The page identifies Code Review for automatic pull request reviews without maintaining a workflow, Claude Code in the cloud for hosted sessions, and the Claude Agent SDK for custom automation outside GitHub Actions. It directs GitLab users to separate CI/CD guidance and links to guidance for GitHub Enterprise Server.

These alternatives are described only to the extent stated on this page. Their detailed requirements, prices, performance and security properties were not assessed.

evidence

The evidence is the complete captured documentation page at [https://code.claude.com/docs/en/github-actions.md]. It provides primary documentation of intended setup, permissions, authentication, examples, troubleshooting and migration behavior.

Linked repository files, configuration references, pricing pages, security policies and licenses are excluded. No commands, workflows or integration behavior were executed or tested. Independent benchmarks, observed task results and security validation are absent.

Access & freshness

costs

Runs consume GitHub Actions runner minutes and Claude usage. Direct API use consumes tokens according to prompt and response length, task complexity and codebase size. Subscription-token authentication uses the Claude subscription instead of API billing.

The page supplies no numeric prices, included runner allowances, subscription limits or per-task estimates. Total cost and cloud-provider charges are therefore unknown. It recommends specific requests, concise CLAUDE.md content, --max-turns, workflow timeouts and concurrency controls to constrain usage; savings are not quantified.

rights

The captured page does not state a license for the documentation, action code or plugins. It also does not establish ownership or commercial-use terms for generated changes. Redistribution and reuse rights cannot be determined from this evidence.

The guide links to data-usage and security documentation, but their contents are outside scope. Retention periods, training-use terms and detailed contractual protections for repository data remain unknown here.

freshness

The page was captured on 25 November 2026 at 15:21:30.689 UTC. The supplied text does not establish its publication or last-update date. Its examples reference anthropics/claude-code-action@v1 and actions/checkout@v6, and it explains migration from the action's beta configuration.

The guide says review workflows created before Claude Code v2.1.229 need the documented --comment and claude_args changes to post findings on pull requests. That version concerns Claude Code behavior, while @v1 identifies the action reference. The newest releases and current default model are not independently established.

actions

Before enabling the integration, have a repository administrator inspect the app permission set, choose authentication and store credentials in GitHub Secrets. Start with a narrowly scoped request, confirm the intended actor can trigger it, and review generated changes before merging. Set turn limits, workflow timeouts and concurrency controls. For reviews, check fork restrictions and configure both comment posting and its required tool.

For shared organization use, evaluate an API key or workload federation rather than relying on one person's subscription token. To remove the integration, delete its workflows and applicable secrets, and uninstall the app only if other Claude features do not need it. Deleting a secret does not invalidate its credential; retiring an API key also requires deleting the key in the Claude Console.

Evidence for this report

selected-page.txtselected · checked 2026-11-25