> ## Documentation Index
> Fetch the complete documentation index at: https://docs.automate.ax/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> Automate.ax automations are TypeScript programs.
> Use Bun for installation and command examples.
> Use Automate.ax for the product name and automate.ax for the package, CLI, and domain.
> Treat documented public APIs as current; do not invent transitional or deprecated names.

# Update repository token

> Rotates the authorization token for an attached GitHub repository.

`anthropic.updateRepositoryToken` rotates the authorization token for an attached GitHub repository.

## Example

```ts automations/anthropic-update-repository-token.automation.ts theme={null}
import { automation, onInvocation, withPrerequisites } from "automate.ax"
import { anthropic } from "automate.ax/anthropic"

export default automation("Update repository token", () => {
  withPrerequisites(onInvocation(), () => {
    anthropic.updateRepositoryToken({
      sessionId: "session-id",
      resourceId: "resource-id",
      authorizationToken: "github-token",
    })
  })
})
```

## Inputs

Requires `sessionId`, `resourceId`, and the replacement `authorizationToken`. Only GitHub repository resources support rotation. Inputs use public camelCase names and accept signals.

## Output and behavior

Returns the updated repository resource. The token is sensitive action input.

Anthropic requests time out before the action lease and provider mutations are not retried after an uncertain response unless stated otherwise.
