← Claude Docs

Use Claude Code GitHub Actions with cloud providers - Claude Code Docs

Claude Docs · August 5, 2026
Claude Code GitHub Actions can route inference through cloud provider accounts—Amazon Bedrock, Google Cloud's Agent Platform, or Microsoft Foundry—by configuring the provider input and establishing OpenID Connect authentication without storing long-lived credentials. The integration setup requires creating a GitHub identity, cloud-side trust configuration, repository secrets, and updating the workflow file, with troubleshooting focused on verifying OIDC configuration and ensuring secret names match the workflow requirements.

Detailed Analysis

Anthropic's documentation for Claude Code GitHub Actions now details a significant architectural option: routing inference through a customer's own cloud infrastructure rather than calling the Claude API directly. The feature allows organizations to set a provider input—use_bedrock, use_vertex, or use_foundry—to redirect Claude Code's model calls through Amazon Bedrock, Google Cloud's Agent Platform, or Microsoft Foundry, respectively. Critically, authentication relies on OpenID Connect (OIDC) tokens rather than long-lived credentials stored in the repository, meaning the GitHub Actions workflow proves its identity to the cloud provider dynamically at runtime instead of relying on static API keys or secrets that could be leaked or need rotation.

This design reflects a broader security posture that has become standard practice for CI/CD systems handling sensitive operations. Long-lived credentials embedded in repository secrets represent a persistent attack surface: if leaked through a misconfigured workflow, a compromised dependency, or an overly permissive token scope, they can be exploited well after the fact. OIDC-based federation eliminates this risk by having the cloud provider (AWS, Google Cloud, or Azure) establish a trust relationship with GitHub's identity provider, verifying claims about the specific repository and workflow before issuing short-lived, scoped credentials. This is the same pattern increasingly adopted across major CI/CD integrations, and Anthropic's choice to build it into Claude Code GitHub Actions signals that the product is being positioned for enterprise-grade deployment rather than solely lightweight individual use.

The multi-cloud provider support—spanning AWS, Google Cloud, and Microsoft Azure—is equally telling. Rather than locking customers into Anthropic's own API infrastructure, this setup lets organizations leverage Claude models through whichever cloud marketplace or enterprise agreement they already have in place. This matters considerably for large enterprises that have existing procurement relationships, compliance requirements, or data residency constraints tied to a specific cloud vendor. Many enterprises are contractually or organizationally bound to consume AI capabilities through an approved cloud channel (Bedrock, Vertex-adjacent Agent Platform, or Foundry) for reasons ranging from centralized billing to regulatory audit trails. By supporting all three major hyperscalers as first-class routing options for its coding agent, Anthropic reduces friction for adoption within organizations that have already standardized on one of these ecosystems.

More broadly, this development illustrates how agentic coding tools like Claude Code are maturing from developer conveniences into infrastructure that must satisfy enterprise IT and security requirements. As AI coding assistants gain the ability to autonomously read, modify, and push code through automated pipelines, the trust and identity model underpinning those actions becomes as important as the model's coding capability itself. The emphasis on OIDC, scoped IAM roles, and repository-specific trust conditions suggests Anthropic is anticipating scrutiny from security teams evaluating whether to grant AI agents write access to critical repositories. This positions Claude Code not just as a coding assistant but as a piece of DevOps infrastructure that must interoperate cleanly with existing cloud governance frameworks—a necessary step as agentic AI tools move from experimental use to production-critical workflows across large organizations.

Read original article →