Set up GitHub Actions in Metorial for Claude, ChatGPT and Cursor
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'll 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 with at least one access group
- An account with GitHub Actions for each person who connects
- For the CLI steps: the Metorial 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.
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.
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.
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
Open Shared Resources
Open Workforce, choose the portal, and select Shared Resources under Access.
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.
Limit the tools
Under Tool Filters, set the write and destructive groups to Reject if agents should only read from GitHub Actions.
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:
Employee: connect GitHub Actions
In the portal
Open GitHub Actions in the catalog
Sign in to your portal and open GitHub Actions. The status reads Available.
Authenticate
Under Quick setup, select Authenticate. A GitHub Actions sign-in tab opens. Sign in and approve the permissions listed.
Confirm
The status changes to Configured. If it later reads Needs reconnect, select Reconnect and sign in again.
With the CLI
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.
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.
Check it worked
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. Needsowner,repoandrunId.list_artifacts: List workflow artifacts for a repository or a specific workflow run. Needsownerandrepo.list_workflows: List GitHub Actions workflows defined in a repository. Needsownerandrepo.list_workflow_runs: List workflow runs for a repository, optionally filtered by a specific workflow, branch, event, status, or actor. Needsownerandrepo.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. Needsscopeandaction.control_workflow_run: Cancel, force-cancel, re-run, or delete a workflow run. Needsowner,repo,runIdandaction.trigger_workflow: Trigger a GitHub Actions workflow run via the `workflow_dispatch` event. Needsowner,repo,workflowIdandref.manage_variables: List, get, create, update, or delete Actions configuration variables at the repository, organization, or environment level. Needsscopeandaction.manage_artifact: Inspect, download a ZIP archive of, or permanently delete a workflow artifact. Needsowner,repo,artifactIdandaction.manage_caches: List, inspect, and delete GitHub Actions caches for a repository. Needsowner,repoandaction.manage_runners: List, inspect, remove, and manage self-hosted runners at the repository or organization level. Needsscopeandaction.manage_permissions: Get or set GitHub Actions permissions for a repository. Needsowner,repoandaction.get_workflow_run_logs: Download workflow run logs as a ZIP archive or individual job logs as text. Needsownerandrepo.manage_workflow_state: Enable or disable a GitHub Actions workflow. Needsowner,repo,workflowIdandaction.
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, Cursor, Codex and ChatGPT: connect each client to your portal and use GitHub Actions there
- Create custom OAuth credentials: the Provider Auth screens in more detail
- Tool permissions: tool filters and what employees see
- GitHub Actions on metorial.com: the integration overview