NachschlagenQuellenregister

Dokumentationerreichbar

Anthropic, Claude Code GitHub Actions

code.claude.com (externe Seite)

Die Dokumentation zu Claude Code in GitHub Actions: Ein Workflow antwortet auf Erwähnungen mit @claude, erledigt Aufgaben und macht aus einem Issue einen Pull Request.

geprüft 22.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 22.11.2026
  • Claude replies in a comment on the same issue or PR and updates it as it works.bestätigt 22.11.2026
  • the triggering user must have write access to the repositorybestätigt 22.11.2026
  • the Claude Code GitHub Action runs on GitHub-hosted runnersbestätigt 22.11.2026
  • which sets up the authentication secret and workflow files for youbestätigt 22.11.2026
  • you install the Claude GitHub App in your browser, then create and merge a pull requestbestätigt 22.11.2026
  • install the app and give it access to your repositorybestätigt 22.11.2026
  • For either path, you need admin access to the repository.bestätigt 22.11.2026
  • /install-github-app works only with github.com repositories.bestätigt 22.11.2026
  • The Claude GitHub App is shared by every Claude feature that integrates with GitHubbestätigt 22.11.2026
  • When you install the app, you accept its full permission set.bestätigt 22.11.2026
  • Install the GitHub CLIbestätigt 22.11.2026
  • run gh auth login in your shellbestätigt 22.11.2026
  • choose between creating a long-lived token with your Claude subscription and pasting in an API keybestätigt 22.11.2026
  • Claude 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 22.11.2026
  • Claude Code pushes a branch with the workflow files, already set to use your secret, and opens GitHub with a pull request ready for you to create.bestätigt 22.11.2026
  • Create and merge that pull request to turn on the workflows.bestätigt 22.11.2026
  • To stop with only the app installed, decline the workflow setupbestätigt 22.11.2026
  • Before v2.1.229, Claude wrote its review only to the workflow run log.bestätigt 22.11.2026
  • the command prints a notice and exits instead of starting setupbestätigt 22.11.2026
  • the Claude Code GitHub Action runs on GitHub-hosted runners, which consume your GitHub Actions minutesbestätigt 22.11.2026
  • Each run consumes two kinds of resourcesbestätigt 22.11.2026
  • If you authenticate with an OAuth token, runs use your Claude subscription instead of API billing.bestätigt 22.11.2026
  • When omitted, the Claude Code GitHub Action authenticates as the Claude GitHub Appbestätigt 22.11.2026
  • GitHub doesn’t trigger workflows on commits made with the default GITHUB_TOKENbestätigt 22.11.2026
  • which keeps bots from triggering Claude in a loopbestätigt 22.11.2026
  • gives Claude a local copy of the repository to work inbestätigt 22.11.2026
  • since an OAuth token is tied to the subscription of the person who ranbestätigt 22.11.2026
  • The Claude Code GitHub Action is built on the SDKbestätigt 22.11.2026
  • Claude runs without waiting for a mentionbestätigt 22.11.2026
  • Never commit API keys or OAuth tokens directly to your repository.bestätigt 22.11.2026
  • For a plain-text prompt, Claude has no shell or GitHub API access until you grant the tools the prompt needsbestätigt 22.11.2026
  • GitHub runs scheduled workflows only from the default branch and, in public repositories, disables the schedule after 60 days without repository activity.bestätigt 22.11.2026
  • GitHub doesn’t trigger workflows on commits made with the defaultbestätigt 22.11.2026
  • On public repositories, GitHub withholds secrets from runs triggered by fork pull requests, so the review runs only on pull requests from branches in the same repository.bestätigt 22.11.2026
  • When you install the app, you accept its full permission set. GitHub doesn’t let you accept a subset.bestätigt 22.11.2026
  • To avoid storing a long-lived secret entirely, authenticate through workload identity federationbestätigt 22.11.2026
  • To allow specific users without write access, set allowed_non_write_users and pass your own github_token input.bestätigt 22.11.2026
  • By default, results appear in the workflow run log rather than a comment.bestätigt 22.11.2026
  • Claude Code installs the GitHub App, adds your authentication secret, and prepares the workflow pull request for younoch nicht nachgeprüft
  • install the GitHub CLI and authenticate it with gh auth loginnoch nicht nachgeprüft
  • Claude Code then pushes a branch with the workflow files you select, already set to use that secret, and opens GitHub in your browser with a pull request ready to create.noch nicht nachgeprüft
  • Create and merge that pull request, and @claude works in the repository.noch nicht nachgeprüft

26 Git und Forges29 Skripte und CI

Alle Quellen

↑↓ auswählenEnter öffnenDie Suche läuft im Browser. Nichts wird übertragen.