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

# GitHub CI

> Set up the GitHub CI resource in Python.

## Dependencies

No additional dependencies - uses `aiohttp` (included).

For credential setup, see the [GitHub CI Setup](/home/setup/github_ci) guide.

## Configuration

```python theme={null}
import os
from mirage import Workspace, MountMode
from mirage.resource.github_ci import GitHubCIConfig, GitHubCIResource

config = GitHubCIConfig(
    token=os.environ["GITHUB_TOKEN"],
    owner="my-org",
    repo="my-repo",
)
resource = GitHubCIResource(config=config)
ws = Workspace({"/ci": resource}, mode=MountMode.READ)
```

## Config Reference

| Field   | Required | Default | Description                         |
| ------- | -------- | ------- | ----------------------------------- |
| `token` | Yes      |         | GitHub Personal Access Token        |
| `owner` | Yes      |         | Repository owner (user or org)      |
| `repo`  | Yes      |         | Repository name                     |
| `days`  | No       | 30      | Time window for listing recent runs |
