> Documentation index: https://metorial.com/llms.txt. Every page is available as Markdown by adding .md to its URL.

# Set up GitHub Actions in Metorial for Claude, ChatGPT and Cursor
URL: https://metorial.com/docs/integrations/github-actions
Last updated: 2026-11-24

Share GitHub Actions with your team in Claude, ChatGPT and Cursor through Metorial: OAuth or personal access token sign-in, 16 tools (6 read-only).

---

To give your team GitHub Actions in Claude, ChatGPT, Cursor and other AI clients, an admin shares the GitHub Actions integration in a Metorial portal, and each person signs in to GitHub Actions with their own account. Agents can manage GitHub Actions workflows, runs, jobs, artifact and log downloads, encrypted secrets, visible variables, caches, self-hosted runners, and repository Actions policies. The integration has 16 tools, 6 read-only and 10 destructive, plus 4 triggers.

**What you will learn**

- How an admin shares GitHub Actions in a portal and how each person connects
- The 10 OAuth scopes GitHub Actions can request, and what each one allows
- How to keep the 6 read-only tools and reject the other 10

**Before you start**

- A [portal](https://metorial.com/docs/platform/workforce/portals) with at least one access group
- An account with GitHub Actions for each person who connects
- For the CLI steps: the [Metorial CLI](https://metorial.com/docs/platform/cli), signed in to your portal

## Sign-in methods

| Method | Type | What a person provides |
| --- | --- | --- |
| **OAuth (repositories)** (default) | OAuth | Signs in to GitHub Actions |
| **Personal Access Token** | API token | `token` |

Also available: **OAuth (repositories and organizations)**.

The portal and `metorial setup` use **OAuth (repositories)** unless someone picks another method.

### OAuth (repositories)

People sign in to GitHub Actions and approve the scopes you allow. The integration can request:

| Scope | Name | What it allows |
| --- | --- | --- |
| `repo` | Repository | Full access to public and private repositories, including Actions workflows, runs, and artifacts |
| `public_repo` | Public Repository | Access to public repositories only |
| `workflow` | Workflow | Manage GitHub Actions workflow files |
| `admin:org` | Admin: Organization | Full management of organizations, required for organization-level secrets and runners |
| `write:org` | Write Organization | Write access to organization membership and settings |
| `read:org` | Read Organization | Read access to organization membership |
| `admin:repo_hook` | Admin: Repo Hook | Full access to repository webhooks for configuring event triggers |
| `admin:org_hook` | Admin: Org Hook | Full access to organization webhooks |
| `user` | User | Read/write access to user profile information |
| `user:email` | User Email | Read access to email addresses |

### Personal Access Token

To connect, a person enters:

- `token`: GitHub Personal Access Token (classic or fine-grained) with Actions permissions

## Use your own GitHub Actions OAuth app

With your own OAuth app, people see your company's name on the GitHub Actions consent screen, and the client ID and secret belong to you.

1. **Start the credentials in Metorial**

   In the dashboard, select **Settings**, then **Organization Settings**. Under **Integrations and MCP**, select **Provider Auth**, then **Create Auth Credentials**. Choose GitHub Actions and copy the **Redirect URI**.

2. **Register the app with GitHub Actions**

   The app is a GitHub OAuth app. In GitHub, click your profile picture, then **Settings**, then **Developer settings**, then **OAuth apps**, and click **New OAuth App** (**Register a new application** if it is your first). Enter an **Application name** and a **Homepage URL**, paste the redirect URI from Metorial into **Authorization callback URL**, and click **Register application**. You can also register the app under an organization you administer.

   Copy the client ID from the app's page and create a client secret there. GitHub accepts up to 10 callback URLs, so one OAuth app can also serve the GitHub integration: add each redirect URI Metorial shows.

3. **Finish in Metorial**

   Copy the app's client ID and client secret. Back in Metorial, enter a **Name**, the **Client ID** and the **Client Secret**, review **Scopes**, and select **Create**. Then pick these credentials for the GitHub Actions integration.

## Admin: share GitHub Actions in a portal

### In the dashboard

1. **Open Shared Resources**

   Open **Workforce**, choose the portal, and select **Shared Resources** under **Access**.

2. **Share a new integration**

   Select **Share a Resource**, then **New Integration**, and choose GitHub Actions. Under **Auth Method**, keep **OAuth (repositories)** or pick another. For how members connect, choose **Each person connects**, so everyone signs in to GitHub Actions as themselves.

3. **Limit the tools**

   Under **Tool Filters**, set the write and destructive groups to **Reject** if agents should only read from GitHub Actions.

4. **Choose who gets it**

   Add the access groups that should see GitHub Actions. When a person asks for access from the portal, the request appears under **Access Requests**.

### With the CLI

The CLI cannot create the per-user GitHub Actions integration. Once it exists, check which groups have it:

```bash
metorial-admin portals access list <portal-id> --type provider_template --search "github actions"
```

## Employee: connect GitHub Actions

### In the portal

1. **Open GitHub Actions in the catalog**

   Sign in to your portal and open GitHub Actions. The status reads **Available**.

2. **Authenticate**

   Under **Quick setup**, select **Authenticate**. A GitHub Actions sign-in tab opens. Sign in and approve the permissions listed.

3. **Confirm**

   The status changes to **Configured**. If it later reads **Needs reconnect**, select **Reconnect** and sign in again.

### With the CLI

```bash
metorial catalog search "github actions"
metorial setup <catalog-item-id>
```

`catalog search` prints the catalog item ID. `metorial setup` uses **OAuth (repositories)**. To connect with **Personal Access Token** instead, find its ID with `metorial catalog get <catalog-item-id>` and add `--auth-method <auth-method-id>`.

### Add it to your AI client

`metorial install` adds your GitHub Actions connection to a local MCP client such as Claude Code, Cursor or Codex. `metorial list` prints the integration ID and `metorial client list` the client identifiers.

```bash
metorial list "github actions"
metorial client list
metorial install <client-identifier> <integration-id>
```

For a client that takes a server URL, such as ChatGPT, `metorial install custom <integration-id>` creates an installation token and shows the endpoint details.

## Make it read-only

Open the integration's **Tool Filters** and set the write and destructive groups to **Reject**. Agents keep the 6 read-only tools, such as `list_artifacts` and `list_workflows`, and lose the 10 destructive tools, such as `manage_caches` or `manage_runners`.

Employees see the result on the integration's page in the portal under **Tool access**. For the full walkthrough, see [Tool permissions](https://metorial.com/docs/platform/guides/tool-permissions).

## Check it worked

```bash
metorial list "github actions"
metorial tools <integration-id>
metorial call <integration-id> list_artifacts -d '{"owner":"<owner>","repo":"<repo>"}'
```

`metorial tools` lists the 16 tools, minus any you rejected. `list_artifacts` needs `owner` and `repo`, so replace the placeholders. It lists workflow artifacts for a repository or a specific workflow run.

To see every input a tool takes, run `metorial schema <integration-id> <tool-key>`.

## Tools

### Read-only tools (6)

- `get_workflow_run`: Get detailed information about a specific workflow run, including its status, conclusion, timing, and associated commit. Needs `owner`, `repo` and `runId`.
- `list_artifacts`: List workflow artifacts for a repository or a specific workflow run. Needs `owner` and `repo`.
- `list_workflows`: List GitHub Actions workflows defined in a repository. Needs `owner` and `repo`.
- `list_workflow_runs`: List workflow runs for a repository, optionally filtered by a specific workflow, branch, event, status, or actor. Needs `owner` and `repo`.
- `get_current_user`: Identify the GitHub user represented by the connected OAuth token or personal access token.
- `list_pending_deployments`: Inspect environment reviews pending for a workflow run, including environment IDs needed to approve or reject a deployment.

### Destructive tools (10)

- `manage_secrets`: List, get, create/update, or delete Actions secrets at the repository, organization, or environment level. Needs `scope` and `action`.
- `control_workflow_run`: Cancel, force-cancel, re-run, or delete a workflow run. Needs `owner`, `repo`, `runId` and `action`.
- `trigger_workflow`: Trigger a GitHub Actions workflow run via the `workflow_dispatch` event. Needs `owner`, `repo`, `workflowId` and `ref`.
- `manage_variables`: List, get, create, update, or delete Actions configuration variables at the repository, organization, or environment level. Needs `scope` and `action`.
- `manage_artifact`: Inspect, download a ZIP archive of, or permanently delete a workflow artifact. Needs `owner`, `repo`, `artifactId` and `action`.
- `manage_caches`: List, inspect, and delete GitHub Actions caches for a repository. Needs `owner`, `repo` and `action`.
- `manage_runners`: List, inspect, remove, and manage self-hosted runners at the repository or organization level. Needs `scope` and `action`.
- `manage_permissions`: Get or set GitHub Actions permissions for a repository. Needs `owner`, `repo` and `action`.
- `get_workflow_run_logs`: Download workflow run logs as a ZIP archive or individual job logs as text. Needs `owner` and `repo`.
- `manage_workflow_state`: Enable or disable a GitHub Actions workflow. Needs `owner`, `repo`, `workflowId` and `action`.

## Triggers

GitHub Actions has 4 triggers, which fire on events in GitHub Actions:

- `workflow_run`: Triggered when a GitHub Actions workflow run is requested, starts, or completes.
- `workflow_job`: Triggered when a workflow job is queued, starts, completes, or enters a waiting state.
- `check_run`: Triggered when a check run is created, completed, rerequested, or has a requested action.
- `deployment_status`: Triggered when a deployment status changes.

## Next steps

- [Claude Code](https://metorial.com/docs/platform/clients/claude-code), [Cursor](https://metorial.com/docs/platform/clients/cursor), [Codex](https://metorial.com/docs/platform/clients/codex) and [ChatGPT](https://metorial.com/docs/platform/clients/chatgpt): connect each client to your portal and use GitHub Actions there
- [Create custom OAuth credentials](https://metorial.com/docs/platform/integrations/create-custom-oauth-credentials): the Provider Auth screens in more detail
- [Tool permissions](https://metorial.com/docs/platform/guides/tool-permissions): tool filters and what employees see
- [GitHub Actions on metorial.com](https://metorial.com/integrations/github-actions): the integration overview