Dokumentationerreichbar
Anthropic, Claude Code GitHub Actions
code.claude.com (externe Seite)
Die Dokumentation zu Claude Code in Git
geprüft 10.11.2026
Worauf sich diese Seite beruft, wörtlich, abgerufen am 12.10.2026:
Mention @claude in a pull request or issue comment to have Claude analyze code, implement changes, and push commits.
bestätigt 10.11.2026Claude replies in a comment on the same issue or PR and updates it as it works.
bestätigt 10.11.2026the triggering user must have write access to the repository
bestätigt 10.11.2026the Claude Code Git
bestätigt 10.11.2026Hub Action runs on Git Hub-hosted runners Claude Code installs the Git
bestätigt 10.11.2026Hub App, adds your authentication secret, and prepares the workflow pull request for you For either path, you need admin access to the repository.
bestätigt 10.11.2026/
bestätigt 10.11.2026install-github-app works only with github.com repositories. The Claude Git
bestätigt 10.11.2026Hub App is shared by every Claude feature that integrates with Git Hub When you install the app, you accept its full permission set.
bestätigt 10.11.2026install the Git
bestätigt 10.11.2026Hub CLI and authenticate it with gh auth login choose between creating a long-lived token with your Claude subscription and pasting in an API key
bestätigt 10.11.2026Claude Code saves the credential as a repository secret, named ANTHROPIC_API_KEY for an API key or CLAUDE_CODE_OAUTH_TOKEN for a subscription token.
bestätigt 10.11.2026Claude Code then pushes a branch with the workflow files you select, already set to use that secret, and opens Git
bestätigt 10.11.2026Hub in your browser with a pull request ready to create. Create and merge that pull request, and @claude works in the repository.
bestätigt 10.11.2026Before v2.1.229, Claude wrote its review only to the workflow run log.
bestätigt 10.11.2026the command prints a notice and exits instead of starting setup
bestätigt 10.11.2026the Claude Code Git
bestätigt 10.11.2026Hub Action runs on Git Hub-hosted runners, which consume your Git Hub Actions minutes Each run consumes two kinds of resources
bestätigt 10.11.2026If you authenticate with an OAuth token, runs use your Claude subscription instead of API billing.
bestätigt 10.11.2026When omitted, the Claude Code Git
bestätigt 10.11.2026Hub Action authenticates as the Claude Git Hub App Git
bestätigt 10.11.2026Hub doesn’t trigger workflows on commits made with the default GITHUB_TOKEN which keeps bots from triggering Claude in a loop
bestätigt 10.11.2026gives Claude a local copy of the repository to work in
bestätigt 10.11.2026since an OAuth token is tied to the subscription of the person who ran
bestätigt 10.11.2026The Claude Code Git
bestätigt 10.11.2026Hub Action is built on the SDK Claude runs without waiting for a mention
bestätigt 10.11.2026Never commit API keys or OAuth tokens directly to your repository.
bestätigt 10.11.2026For a plain-text prompt, Claude has no shell or Git
bestätigt 10.11.2026Hub API access until you grant the tools the prompt needs Git
bestätigt 10.11.2026Hub runs scheduled workflows only from the default branch and, in public repositories, disables the schedule after 60 days without repository activity. Git
bestätigt 10.11.2026Hub doesn’t trigger workflows on commits made with the default On public repositories, Git
bestätigt 10.11.2026Hub withholds secrets from runs triggered by fork pull requests, so the review runs only on pull requests from branches in the same repository. When you install the app, you accept its full permission set. Git
bestätigt 10.11.2026Hub doesn’t let you accept a subset. To avoid storing a long-lived secret entirely, authenticate through workload identity federation
bestätigt 10.11.2026To allow specific users without write access, set allowed_non_write_users and pass your own github_token input.
bestätigt 10.11.2026By default, results appear in the workflow run log rather than a comment.
bestätigt 10.11.2026