> For the complete documentation index, see [llms.txt](https://docs.fastn.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.fastn.ai/connectors/catalog/developer-tools/github.md). Agents can also search and read this documentation through its [MCP server](https://docs.fastn.ai/~gitbook/mcp).

# GitHub

GitHub hosts code and collaboration for software teams. Manage repositories, issues, pull requests, teams, runners and Copilot seats.

![GitHub logo](https://1255842839-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3iSr2Tx8FvvuoLPncziH%2Fuploads%2Fgit-blob-ce5d3d28afb9eced6f1dfda255fc6665f94af594%2Fgithub.png?alt=media)

|                    |                                                                                |
| ------------------ | ------------------------------------------------------------------------------ |
| **Category**       | [Developer tools](https://docs.fastn.ai/connectors/catalog/developer-tools.md) |
| **Website**        | [github.com](https://github.com)                                               |
| **Authentication** | Access token, OAuth 2.0                                                        |
| **Slug**           | `github`                                                                       |
| **On fastn.ai**    | [Embed GitHub in your product](https://fastn.ai/integrations/github)           |

## Setup

Your customers sign in to GitHub through Fastn's own OAuth app, so nothing needs setting up first. To show your own app on the consent screen instead, add your OAuth app on the connector's **Auth** tab under **Manage providers**.

## Connect in Fastn

Your customers connect GitHub from your widget. To connect an account yourself:

1. Go to **Build → Integrations → Connectors** and search for **GitHub**.
2. Select **Connect** on the GitHub card.

   <figure><img src="https://1255842839-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3iSr2Tx8FvvuoLPncziH%2Fuploads%2Fgit-blob-586dd03cdc0c6904263f58928d7a531eae2f85df%2Fconnect-search.png?alt=media" alt="The Connectors page in Fastn with ServiceNow typed in the search box and the ServiceNow card showing a Connect button"><figcaption><p>Search for the connector, then select Connect on its card. ServiceNow is shown here.</p></figcaption></figure>
3. GitHub offers more than one sign-in method. Choose one in **Auth Method**, then:
   * For a key or credential method, fill in the fields the form asks for, using the values from [Setup](#setup) above. Then select **Connect**.

     <figure><img src="https://1255842839-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3iSr2Tx8FvvuoLPncziH%2Fuploads%2Fgit-blob-51fb88ef328c525b5b11f8d7094bab11efc333b8%2Fconnect-credentials.png?alt=media" alt="The Connect ServiceNow dialog with an optional account name and the Instance, Username and Password fields, and Cancel and Connect buttons"><figcaption><p>A connect form that asks for credentials. Each connector asks for its own fields.</p></figcaption></figure>
   * For OAuth 2.0, keep the **Default** auth provider, or choose your own OAuth app if you added one. Pick the **Scopes** you need, select **Authorize**, then sign in to GitHub and approve access in the window that opens.

     <figure><img src="https://1255842839-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3iSr2Tx8FvvuoLPncziH%2Fuploads%2Fgit-blob-0e2bbdd7109cec207402cf6883484b8525b7fbf5%2Fconnect-oauth.png?alt=media" alt="The Connect Salesforce dialog for OAuth 2.0 with the Default auth provider, an optional account name, the Scopes selector and an Authorize button"><figcaption><p>A connect form for OAuth 2.0. Salesforce is shown here.</p></figcaption></figure>
4. Check that the connection appears under **Operate → Connections** with the status `Active`. Your workflows can now use GitHub's actions.

For more detail, see [Connect an app](https://docs.fastn.ai/build/integrations/connectors/connect-an-app.md).

## Actions

<table><thead><tr><th width="240">Action</th><th width="260">Slug</th><th>What it does</th></tr></thead><tbody><tr><td>Add Enterprise OIDC Repo Property</td><td><code>addEnterpriseOidcRepoProperty</code></td><td>Adds a repository custom property to the OIDC subject claim customization for an enterprise.</td></tr><tr><td>Add Enterprise Runner Labels</td><td><code>addEnterpriseRunnerLabels</code></td><td>Adds custom labels to a self-hosted runner configured in an enterprise.</td></tr><tr><td>Add Enterprise Team Member</td><td><code>addEnterpriseTeamMembership</code></td><td>Adds (or updates) a single user's membership in an enterprise team via PUT. Returns the membership.</td></tr><tr><td>Add Enterprise Team Members (Bulk)</td><td><code>addEnterpriseTeamMemberships</code></td><td>Bulk-adds members to an enterprise team by username.</td></tr><tr><td>Add Enterprise Team Organization</td><td><code>addEnterpriseTeamOrganization</code></td><td>Connects a single organization to an enterprise team via PUT. Returns the connected organization.</td></tr><tr><td>Add Enterprise Team Organizations (Bulk)</td><td><code>addEnterpriseTeamOrganizations</code></td><td>Bulk-connects organizations to an enterprise team by organization slug.</td></tr><tr><td>Add Labels to Issue</td><td><code>addLabels</code></td><td>Add labels to an issue. The labels are appended to any existing labels. Returns the full array of labels on the issue.</td></tr><tr><td>Add Organization Access To Enterprise Runner Group</td><td><code>addEnterpriseRunnerGroupOrg</code></td><td>Adds an organization to the list of organizations that have access to a self-hosted runner group in an enterprise.</td></tr><tr><td>Add Repositories To Enterprise Org App Installation</td><td><code>addEnterpriseOrgAppInstallationRepositories</code></td><td>Add repositories to an app installation's selected-repository set in an org. Pass a pre-stringified JSON body of the form {"repositories":["repo-a","repo-b"]}.</td></tr><tr><td>Add Runner To Enterprise Runner Group</td><td><code>addEnterpriseRunnerGroupRunner</code></td><td>Adds a self-hosted runner to a runner group for an enterprise.</td></tr></tbody></table>

<details>

<summary>View 243 more actions</summary>

<table><thead><tr><th width="240">Action</th><th width="260">Slug</th><th>What it does</th></tr></thead><tbody><tr><td>Add Teams To Enterprise Copilot Subscription</td><td><code>addEnterpriseCopilotTeams</code></td><td>Adds enterprise teams to the Copilot subscription for an enterprise.</td></tr><tr><td>Add Users To Enterprise Copilot Subscription</td><td><code>addEnterpriseCopilotUsers</code></td><td>Adds users to the Copilot subscription for an enterprise.</td></tr><tr><td>Assign Enterprise Role To Team</td><td><code>assignEnterpriseRoleToTeam</code></td><td>Assign a specific enterprise role to a team.</td></tr><tr><td>Assign Enterprise Role To User</td><td><code>assignEnterpriseRoleToUser</code></td><td>Assign a specific enterprise role to a user.</td></tr><tr><td>Attach Enterprise Code Security Configuration</td><td><code>attachEnterpriseCodeSecurityConfiguration</code></td><td>Attaches an enterprise code security configuration to repositories.</td></tr><tr><td>Create Branch</td><td><code>createBranch</code></td><td>Creates a new branch in a repository, pointing at the given commit SHA (GitHub git refs API, with ref refs/heads/&#x3C;branch>). To branch from an existing branch, first call Get Branch on it and pass its commit.sha. Returns the new reference (ref, node_id, url, object.sha). Fails with 422 "Reference already exists" if the branch name is taken.</td></tr><tr><td>Create Enterprise Audit Log Stream</td><td><code>createEnterpriseAuditLogStream</code></td><td>Create an audit log streaming endpoint for an enterprise. Pass a pre-stringified JSON body with: enabled (boolean), stream_type (e.g. Azure Blob Storage, Splunk, Amazon S3, Google Cloud Storage, Datadog), vendor_specific (provider-specific config object).</td></tr><tr><td>Create Enterprise Budget</td><td><code>createEnterpriseBudget</code></td><td>Creates a budget for an enterprise.</td></tr><tr><td>Create Enterprise Code Security Configuration</td><td><code>createEnterpriseCodeSecurityConfiguration</code></td><td>Creates a code security configuration in an enterprise.</td></tr><tr><td>Create Enterprise Hosted Runner</td><td><code>createEnterpriseHostedRunner</code></td><td>Creates a GitHub-hosted runner for an enterprise.</td></tr><tr><td>Create Enterprise Network Configuration</td><td><code>createEnterpriseNetworkConfiguration</code></td><td>Creates a hosted compute network configuration for an enterprise.</td></tr><tr><td>Create Enterprise Org App Installation</td><td><code>createEnterpriseOrgAppInstallation</code></td><td>Install a GitHub App (owned by the enterprise) into an organization. Pass a pre-stringified JSON body with: client_id (required), repository_selection (all|selected, optional), repositories (optional array of repo names when selected).</td></tr><tr><td>Create Enterprise Ruleset</td><td><code>createEnterpriseRuleset</code></td><td>Create a repository ruleset that applies across an enterprise. Pass a pre-stringified JSON body with: name (required), enforcement (active|evaluate|disabled, required), target (optional), conditions (optional object), rules (optional array), bypass_actors (optional array).</td></tr><tr><td>Create Enterprise Runner Registration Token</td><td><code>createEnterpriseRunnerRegistrationToken</code></td><td>Returns a token to register a self-hosted runner with an enterprise.</td></tr><tr><td>Create Enterprise Runner Remove Token</td><td><code>createEnterpriseRunnerRemoveToken</code></td><td>Returns a token to remove a self-hosted runner from an enterprise.</td></tr><tr><td>Create Enterprise Self-Hosted Runner Group</td><td><code>createEnterpriseRunnerGroup</code></td><td>Creates a new self-hosted runner group for an enterprise. Returns the created runner group object.</td></tr><tr><td>Create Enterprise Team</td><td><code>createEnterpriseTeam</code></td><td>Creates a new enterprise team. Optionally maps the team to an IdP group (group_id) and controls organization sync. Returns the created team.</td></tr><tr><td>Create Issue</td><td><code>createIssue</code></td><td>Create a new issue in a repository. Requires a title. Returns the created issue object (201).</td></tr><tr><td>Create Issue Comment</td><td><code>createIssueComment</code></td><td>Create a comment on an issue. Requires the comment body. Returns the created comment object (201).</td></tr><tr><td>Create Label</td><td><code>createLabel</code></td><td>Create a label in a repository. Requires a name. Returns the created label object (201).</td></tr><tr><td>Create Milestone</td><td><code>createMilestone</code></td><td>Create a milestone in a repository. Requires a title. Returns the created milestone object (201).</td></tr><tr><td>Create or Update File Contents</td><td><code>createOrUpdateFile</code></td><td>Create a new file or replace an existing file in a repository. Content must be Base64-encoded. To update an existing file you must supply its current blob sha.</td></tr><tr><td>Create Organization Repository</td><td><code>createOrgRepo</code></td><td>Creates a new repository in the specified organization. BLOCKED (provider account-state): authenticated user belongs to no organization (listUserOrgs returned []), so an org repo cannot be created anywhere. Executing against public org 'github'' configHealthy:true (auth resolved, URL routed). Wiring is correct, field-by-field bodyTemplate). Returns the full repository object (201) on success when admin access exists.</td></tr><tr><td>Create Pull Request</td><td><code>createPull</code></td><td>Create a new pull request. Provide title (or issue), head and base branches, optional body, draft and maintainer_can_modify flags. Returns the created pull request object (201).</td></tr><tr><td>Create Pull Request Review</td><td><code>createReview</code></td><td>Create a review on a pull request. Optionally specify commit_id, body, event (APPROVE/REQUEST_CHANGES/COMMENT, omit for PENDING) and inline comments. Returns the created review object.</td></tr><tr><td>Create Release</td><td><code>createRelease</code></td><td>Create a release for a repository. Users with push access can create a release. Requires tag_name. Returns the created release object (201).</td></tr><tr><td>Create Repo Webhook</td><td><code>createRepoWebhook</code></td><td>Create a repository webhook. Used by the webhook subscription code to register a webhook that delivers issue events to a Fastn callback URL. Returns the created hook object (201).</td></tr><tr><td>Create Repository For Authenticated User</td><td><code>createUserRepo</code></td><td>Creates a new repository for the authenticated user. Returns the full repository object (201).</td></tr><tr><td>Create SCIM Group (Enterprise)</td><td><code>createScimGroup</code></td><td>Provisions a new SCIM group in an enterprise. Returns the created SCIM group resource.</td></tr><tr><td>Create SCIM User (Enterprise)</td><td><code>createScimUser</code></td><td>Provisions a new SCIM user in an enterprise. Returns the created SCIM user resource.</td></tr><tr><td>Delete Enterprise Audit Log Stream</td><td><code>deleteEnterpriseAuditLogStream</code></td><td>Delete an audit log streaming endpoint by id.</td></tr><tr><td>Delete Enterprise Budget</td><td><code>deleteEnterpriseBudget</code></td><td>Deletes a budget configured for an enterprise.</td></tr><tr><td>Delete Enterprise Code Security Configuration</td><td><code>deleteEnterpriseCodeSecurityConfiguration</code></td><td>Deletes a code security configuration from an enterprise.</td></tr><tr><td>Delete Enterprise Custom Property</td><td><code>deleteEnterpriseCustomProperty</code></td><td>Delete a custom property definition from an enterprise by name.</td></tr><tr><td>Delete Enterprise Hosted Runner</td><td><code>deleteEnterpriseHostedRunner</code></td><td>Deletes a GitHub-hosted runner for an enterprise.</td></tr><tr><td>Delete Enterprise Hosted Runner Custom Image</td><td><code>deleteEnterpriseHostedRunnerCustomImage</code></td><td>Deletes a custom image and all its versions for GitHub-hosted runners in an enterprise.</td></tr><tr><td>Delete Enterprise Hosted Runner Custom Image Version</td><td><code>deleteEnterpriseHostedRunnerCustomImageVersion</code></td><td>Deletes a specific version of a custom image for GitHub-hosted runners in an enterprise.</td></tr><tr><td>Delete Enterprise Network Configuration</td><td><code>deleteEnterpriseNetworkConfiguration</code></td><td>Deletes a hosted compute network configuration from an enterprise.</td></tr><tr><td>Delete Enterprise OIDC Repo Property</td><td><code>deleteEnterpriseOidcRepoProperty</code></td><td>Removes a repository custom property from the OIDC subject claim customization for an enterprise.</td></tr><tr><td>Delete Enterprise Org App Installation</td><td><code>deleteEnterpriseOrgAppInstallation</code></td><td>Uninstall a GitHub App from an organization managed by the enterprise.</td></tr><tr><td>Delete Enterprise Ruleset</td><td><code>deleteEnterpriseRuleset</code></td><td>Delete an enterprise repository ruleset by id.</td></tr><tr><td>Delete Enterprise Runner</td><td><code>deleteEnterpriseRunner</code></td><td>Forces the removal of a self-hosted runner from an enterprise.</td></tr><tr><td>Delete Enterprise Self-Hosted Runner Group</td><td><code>deleteEnterpriseRunnerGroup</code></td><td>Deletes a self-hosted runner group for an enterprise.</td></tr><tr><td>Delete Enterprise Team</td><td><code>deleteEnterpriseTeam</code></td><td>Deletes an enterprise team by its team slug.</td></tr><tr><td>Delete File</td><td><code>deleteFile</code></td><td>Delete a file in a repository. Requires the blob sha of the file being deleted.</td></tr><tr><td>Delete Release</td><td><code>deleteRelease</code></td><td>Delete a release identified by release_id. Users with push access can delete a release.</td></tr><tr><td>Delete Repo Webhook</td><td><code>deleteRepoWebhook</code></td><td>Delete a repository webhook by its id. Used by the webhook unsubscription code.</td></tr><tr><td>Delete Repository</td><td><code>deleteRepo</code></td><td>Deletes a repository. Requires admin access. BLOCKED (provider auth-scope gating): the OAuth token lacks the 'delete_repo' scope. Executed against two repos the authenticated user (sarmadnawaz) demonstrably OWNS - fastn-verify-uog-1780668 and fastn-verify-gh - both return 403 'Must have admin rights to Repository.' configHealthy:true (auth resolved, URL routed correctly via url=host + path=/repos/{owner}/{repo}; no doubled-URL defect). Since ownership is confirmed, the 403 is not an admin-rights gap but the missing delete_repo OAuth scope; re-grant that scope to obtain 204. Leftover scratch repos remain (could not be cleaned up due to this scope gap).</td></tr><tr><td>Delete SCIM Group (Enterprise)</td><td><code>deleteScimGroup</code></td><td>Deprovisions (deletes) a SCIM group in an enterprise.</td></tr><tr><td>Delete SCIM User (Enterprise)</td><td><code>deleteScimUser</code></td><td>Deprovisions (deletes) a SCIM user in an enterprise.</td></tr><tr><td>Disable Enterprise Access Restrictions</td><td><code>disableEnterpriseAccessRestrictions</code></td><td>Disable IP allow list / access restrictions for an enterprise.</td></tr><tr><td>Disable Selected Organization For Enterprise Actions</td><td><code>disableEnterprisePermissionsOrg</code></td><td>Removes an organization from the list of selected organizations that are enabled for GitHub Actions in an enterprise.</td></tr><tr><td>Dispatch Workflow</td><td><code>dispatchWorkflow</code></td><td>Manually trigger a GitHub Actions workflow run (workflow_dispatch event). The workflow must define an on.workflow_dispatch trigger.</td></tr><tr><td>Enable Enterprise Access Restrictions</td><td><code>enableEnterpriseAccessRestrictions</code></td><td>Enable IP allow list / access restrictions for an enterprise.</td></tr><tr><td>Enable Selected Organization For Enterprise Actions</td><td><code>enableEnterprisePermissionsOrg</code></td><td>Adds an organization to the list of selected organizations that are enabled for GitHub Actions in an enterprise.</td></tr><tr><td>Generate Enterprise Runner JIT Config</td><td><code>generateEnterpriseRunnerJitConfig</code></td><td>Generate a just-in-time configuration for a new enterprise self-hosted runner.</td></tr><tr><td>Get Allowed Actions For Enterprise</td><td><code>getEnterpriseAllowedActions</code></td><td>Gets the selected actions and reusable workflows that are allowed in an enterprise. Only applicable when allowed_actions is set to selected.</td></tr><tr><td>Get Authenticated User</td><td><code>getAuthenticatedUser</code></td><td>Get the profile of the user associated with the access token. Returns extended fields like plan, total_private_repos, and collaborators for the authenticated account.</td></tr><tr><td>Get Branch</td><td><code>getBranch</code></td><td>Gets a single branch for the given repository. Returns the branch object with commit and protection details.</td></tr><tr><td>Get Commit</td><td><code>getCommit</code></td><td>Gets a single commit by SHA, branch name, or tag. Returns the commit object with stats and files.</td></tr><tr><td>Get Default Enterprise Code Security Configurations</td><td><code>getEnterpriseCodeSecurityDefaultConfigurations</code></td><td>Lists the default code security configurations for an enterprise.</td></tr><tr><td>Get Enterprise Actions Permissions</td><td><code>getEnterpriseActionsPermissions</code></td><td>Gets the GitHub Actions permissions policy for organizations and allowed actions in an enterprise. Returns enabled_organizations and allowed_actions.</td></tr><tr><td>Get Enterprise Advanced Security Billing</td><td><code>getEnterpriseAdvancedSecurityBilling</code></td><td>Get GitHub Advanced Security active committer usage and billing for an enterprise. Optional query: advanced_security_product (e.g. code_security, secret_protection).</td></tr><tr><td>Get Enterprise AI Credit Usage</td><td><code>getEnterpriseAiCreditUsage</code></td><td>Gets the AI credit usage report for an enterprise.</td></tr><tr><td>Get Enterprise Announcement</td><td><code>getEnterpriseAnnouncement</code></td><td>Get the global announcement banner configured for an enterprise.</td></tr><tr><td>Get Enterprise Artifact And Log Retention Settings</td><td><code>getEnterpriseArtifactRetention</code></td><td>Gets the artifact and log retention period settings for an enterprise.</td></tr><tr><td>Get Enterprise Audit Log</td><td><code>getEnterpriseAuditLog</code></td><td>List audit log events for an enterprise. Optional query filters: phrase (search), include (web/git/all), after, before (cursor), order (asc/desc), page, per_page.</td></tr><tr><td>Get Enterprise Audit Log Stream</td><td><code>getEnterpriseAuditLogStream</code></td><td>Get a single audit log streaming endpoint configuration by its id.</td></tr><tr><td>Get Enterprise Audit Log Stream Key</td><td><code>getEnterpriseAuditLogStreamKey</code></td><td>Get the public encryption key used to set up an enterprise audit log streaming endpoint.</td></tr><tr><td>Get Enterprise Billing Usage Report</td><td><code>getEnterpriseBillingUsage</code></td><td>Gets a report of the metered usage for an enterprise.</td></tr><tr><td>Get Enterprise Billing Usage Summary</td><td><code>getEnterpriseBillingUsageSummary</code></td><td>Gets a summary of the metered usage for an enterprise.</td></tr><tr><td>Get Enterprise Budget</td><td><code>getEnterpriseBudget</code></td><td>Gets a specific budget configured for an enterprise.</td></tr><tr><td>Get Enterprise Cache Retention Limit</td><td><code>getEnterpriseCacheRetentionLimit</code></td><td>Gets the GitHub Actions cache retention limit policy for an enterprise.</td></tr><tr><td>Get Enterprise Cache Storage Limit</td><td><code>getEnterpriseCacheStorageLimit</code></td><td>Gets the GitHub Actions cache storage limit policy for an enterprise.</td></tr><tr><td>Get Enterprise Cache Usage</td><td><code>getEnterpriseCacheUsage</code></td><td>Gets the total GitHub Actions cache usage for an enterprise.</td></tr><tr><td>Get Enterprise Code Security And Analysis</td><td><code>getEnterpriseCodeSecurityAnalysis</code></td><td>Get the enterprise-wide code security and analysis settings (Advanced Security, secret scanning, push protection, Dependabot, etc.).</td></tr><tr><td>Get Enterprise Code Security Configuration</td><td><code>getEnterpriseCodeSecurityConfiguration</code></td><td>Gets a code security configuration available in an enterprise.</td></tr><tr><td>Get Enterprise Consumed Licenses</td><td><code>getEnterpriseConsumedLicenses</code></td><td>List GitHub Enterprise license seats consumed across the enterprise. Optional query: page, per_page.</td></tr><tr><td>Get Enterprise Copilot Metrics Report (1 Day)</td><td><code>getEnterpriseCopilotMetricsReport1Day</code></td><td>Gets the daily Copilot metrics report for an enterprise for a given day.</td></tr><tr><td>Get Enterprise Copilot User Teams Metrics Report (1 Day)</td><td><code>getEnterpriseCopilotUserTeamsMetricsReport1Day</code></td><td>Gets the daily Copilot metrics report broken down by user teams for an enterprise.</td></tr><tr><td>Get Enterprise Copilot Users Metrics Report (1 Day)</td><td><code>getEnterpriseCopilotUsersMetricsReport1Day</code></td><td>Gets the daily Copilot metrics report broken down by user for an enterprise.</td></tr><tr><td>Get Enterprise Custom Properties Schema</td><td><code>getEnterpriseCustomPropertiesSchema</code></td><td>List all custom property definitions configured for an enterprise.</td></tr><tr><td>Get Enterprise Custom Property</td><td><code>getEnterpriseCustomProperty</code></td><td>Get a single custom property definition for an enterprise by name.</td></tr><tr><td>Get Enterprise Default Workflow Permissions</td><td><code>getEnterpriseWorkflowPermissions</code></td><td>Gets the default workflow permissions granted to the GITHUB_TOKEN when running workflows in an enterprise, and whether GitHub Actions can approve pull requests.</td></tr><tr><td>Get Enterprise Fork PR Contributor Approval Policy</td><td><code>getEnterpriseForkPrContributorApproval</code></td><td>Gets the fork pull request contributor approval policy for an enterprise.</td></tr><tr><td>Get Enterprise Fork PR Workflows In Private Repos</td><td><code>getEnterpriseForkPrPrivateRepos</code></td><td>Gets whether workflows triggered by pull requests from forks are allowed to run on private repositories in an enterprise, and related token/secret settings.</td></tr><tr><td>Get Enterprise Hosted Runner</td><td><code>getEnterpriseHostedRunner</code></td><td>Gets a GitHub-hosted runner configured in an enterprise.</td></tr><tr><td>Get Enterprise Hosted Runner Custom Image</td><td><code>getEnterpriseHostedRunnerCustomImage</code></td><td>Gets a specific custom image available for GitHub-hosted runners in an enterprise.</td></tr><tr><td>Get Enterprise Hosted Runner Custom Image Version</td><td><code>getEnterpriseHostedRunnerCustomImageVersion</code></td><td>Gets a specific version of a custom image available to GitHub-hosted runners in an enterprise.</td></tr><tr><td>Get Enterprise Hosted Runner Limits</td><td><code>getEnterpriseHostedRunnerLimits</code></td><td>Gets the GitHub-hosted runner limits for an enterprise.</td></tr><tr><td>Get Enterprise License Sync Status</td><td><code>getEnterpriseLicenseSyncStatus</code></td><td>Get the license sync status between GitHub Enterprise Cloud and connected GitHub Enterprise Server instances.</td></tr><tr><td>Get Enterprise Member Copilot Details</td><td><code>getEnterpriseMemberCopilotDetails</code></td><td>Gets the Copilot seat assignment details for a member of an enterprise.</td></tr><tr><td>Get Enterprise Network Configuration</td><td><code>getEnterpriseNetworkConfiguration</code></td><td>Gets a hosted compute network configuration for an enterprise.</td></tr><tr><td>Get Enterprise Network Settings</td><td><code>getEnterpriseNetworkSettings</code></td><td>Gets a hosted compute network settings resource for an enterprise.</td></tr><tr><td>Get Enterprise OIDC Repo Properties</td><td><code>getEnterpriseOidcRepoProperties</code></td><td>Gets the customization template for OIDC subject claim repository properties for an enterprise.</td></tr><tr><td>Get Enterprise Premium Request Usage</td><td><code>getEnterprisePremiumRequestUsage</code></td><td>Gets the premium request usage report for an enterprise.</td></tr><tr><td>Get Enterprise Role</td><td><code>getEnterpriseRole</code></td><td>Get a single enterprise role by id, including its permissions.</td></tr><tr><td>Get Enterprise Ruleset</td><td><code>getEnterpriseRuleset</code></td><td>Get a single enterprise repository ruleset by id.</td></tr><tr><td>Get Enterprise Ruleset Version</td><td><code>getEnterpriseRulesetVersion</code></td><td>Get a specific historical version of an enterprise repository ruleset.</td></tr><tr><td>Get Enterprise Runner</td><td><code>getEnterpriseRunner</code></td><td>Gets a specific self-hosted runner configured in an enterprise.</td></tr><tr><td>Get Enterprise Self-Hosted Runner Group</td><td><code>getEnterpriseRunnerGroup</code></td><td>Gets a single self-hosted runner group for an enterprise by ID.</td></tr><tr><td>Get Enterprise Self-Hosted Runners Settings</td><td><code>getEnterpriseSelfHostedRunnersSettings</code></td><td>Gets the settings for whether self-hosted runners are disabled for all organizations in an enterprise.</td></tr><tr><td>Get Enterprise Team</td><td><code>getEnterpriseTeam</code></td><td>Fetches a single enterprise team by its team slug.</td></tr><tr><td>Get Enterprise Team Membership</td><td><code>getEnterpriseTeamMembership</code></td><td>Gets the membership of a single user in an enterprise team.</td></tr><tr><td>Get Enterprise Team Organization</td><td><code>getEnterpriseTeamOrganization</code></td><td>Gets the connection of a single organization to an enterprise team.</td></tr><tr><td>Get Issue</td><td><code>getIssue</code></td><td>Get a single issue by its number in a repository. Returns the full issue object.</td></tr><tr><td>Get Latest Enterprise Copilot Metrics Report (28 Day)</td><td><code>getEnterpriseCopilotMetricsReport28DayLatest</code></td><td>Gets the latest 28-day Copilot metrics report for an enterprise.</td></tr><tr><td>Get Latest Enterprise Copilot Users Metrics Report (28 Day)</td><td><code>getEnterpriseCopilotUsersMetricsReport28DayLatest</code></td><td>Gets the latest 28-day Copilot metrics report broken down by user for an enterprise.</td></tr><tr><td>Get Latest Release</td><td><code>getLatestRelease</code></td><td>Get the latest published full release for the repository. The latest release is the most recent non-prerelease, non-draft release, sorted by created_at. Returns a release object.</td></tr><tr><td>Get Organization</td><td><code>getOrg</code></td><td>Get detailed information about a single organization by its login. Some fields require the authenticated user to be an organization owner.</td></tr><tr><td>Get Pull Request</td><td><code>getPull</code></td><td>Get a single pull request by number. Returns the full pull request object including merge status, mergeable state and statistics.</td></tr><tr><td>Get Release</td><td><code>getRelease</code></td><td>Get a single release by its unique release_id. Returns a release object.</td></tr><tr><td>Get Repo Webhook</td><td><code>getRepoWebhook</code></td><td>Get a single repository webhook by its id. Returns the hook object.</td></tr><tr><td>Get Repository</td><td><code>getRepo</code></td><td>Gets a single repository by owner and repo name. Returns the full repository object.</td></tr><tr><td>Get Repository Content</td><td><code>getContent</code></td><td>Get the contents of a file or directory in a repository. Returns file content (Base64-encoded), a directory listing (array), a symlink, or a submodule depending on the path.</td></tr><tr><td>Get Repository README</td><td><code>getReadme</code></td><td>Get the preferred README for a repository. Returns the README file content (Base64-encoded).</td></tr><tr><td>Get SCIM Group (Enterprise)</td><td><code>getScimGroup</code></td><td>Fetches a single provisioned SCIM group in an enterprise by its SCIM group id.</td></tr><tr><td>Get SCIM User (Enterprise)</td><td><code>getScimUser</code></td><td>Fetches a single provisioned SCIM user in an enterprise by its SCIM user id.</td></tr><tr><td>Get User</td><td><code>getUser</code></td><td>Get publicly available information about a GitHub user by username.</td></tr><tr><td>Get Workflow Run</td><td><code>getWorkflowRun</code></td><td>Get a specific GitHub Actions workflow run by its run_id. Returns the full workflow run object.</td></tr><tr><td>List Branches</td><td><code>listBranches</code></td><td>Lists branches for the given repository. Returns an array of branch objects.</td></tr><tr><td>List Collaborators</td><td><code>listCollaborators</code></td><td>Lists collaborators for the given repository. Returns an array of collaborator objects with permissions.</td></tr><tr><td>List Commits</td><td><code>listCommits</code></td><td>Lists commits for the given repository. Returns an array of commit objects.</td></tr><tr><td>List Deployment Statuses</td><td><code>listDeploymentStatuses</code></td><td>List statuses for a deployment Returns the deployment's statuses, most recent first, with pagination. Requires repo or repo_deployment scope.</td></tr><tr><td>List Deployments</td><td><code>listDeployments</code></td><td>List deployments for a repository Returns deployments, most recent first. Supports filtering by sha, ref, task, and environment, with pagination.</td></tr><tr><td>List Enterprise Audit Log Streams</td><td><code>listEnterpriseAuditLogStreams</code></td><td>List the configured audit log streaming endpoints for an enterprise.</td></tr><tr><td>List Enterprise Budget User States</td><td><code>listEnterpriseBudgetUserStates</code></td><td>Lists the per-user states for a specific enterprise budget.</td></tr><tr><td>List Enterprise Budgets</td><td><code>listEnterpriseBudgets</code></td><td>Lists the budgets configured for an enterprise.</td></tr><tr><td>List Enterprise Code Scanning Alerts</td><td><code>listEnterpriseCodeScanningAlerts</code></td><td>Lists code scanning alerts for the default branch for all eligible repositories in an enterprise.</td></tr><tr><td>List Enterprise Code Security Configurations</td><td><code>listEnterpriseCodeSecurityConfigurations</code></td><td>Lists all code security configurations available in an enterprise.</td></tr><tr><td>List Enterprise Copilot Seats</td><td><code>listEnterpriseCopilotSeats</code></td><td>Lists all Copilot seat assignments for an enterprise.</td></tr><tr><td>List Enterprise Dependabot Alerts</td><td><code>listEnterpriseDependabotAlerts</code></td><td>Lists Dependabot alerts for repositories that are part of an enterprise.</td></tr><tr><td>List Enterprise Hosted Runner Custom Image Versions</td><td><code>listEnterpriseHostedRunnerCustomImageVersions</code></td><td>Gets the list of versions for a custom image available to GitHub-hosted runners in an enterprise.</td></tr><tr><td>List Enterprise Hosted Runner Custom Images</td><td><code>listEnterpriseHostedRunnerCustomImages</code></td><td>Gets the list of custom images available for GitHub-hosted runners in an enterprise.</td></tr><tr><td>List Enterprise Hosted Runner GitHub-Owned Images</td><td><code>listEnterpriseHostedRunnerGithubOwnedImages</code></td><td>Gets the list of GitHub-owned images available for GitHub-hosted runners in an enterprise.</td></tr><tr><td>List Enterprise Hosted Runner Machine Sizes</td><td><code>listEnterpriseHostedRunnerMachineSizes</code></td><td>Gets the list of machine specs available for GitHub-hosted runners in an enterprise.</td></tr><tr><td>List Enterprise Hosted Runner Partner Images</td><td><code>listEnterpriseHostedRunnerPartnerImages</code></td><td>Gets the list of partner images available for GitHub-hosted runners in an enterprise.</td></tr><tr><td>List Enterprise Hosted Runner Platforms</td><td><code>listEnterpriseHostedRunnerPlatforms</code></td><td>Gets the list of platforms available for GitHub-hosted runners in an enterprise.</td></tr><tr><td>List Enterprise Hosted Runners</td><td><code>listEnterpriseHostedRunners</code></td><td>Lists all GitHub-hosted runners configured in an enterprise.</td></tr><tr><td>List Enterprise Installable Org Accessible Repositories</td><td><code>listEnterpriseInstallableOrgRepositories</code></td><td>List repositories in an organization that a GitHub App can be granted access to during installation. Optional query: page, per_page.</td></tr><tr><td>List Enterprise Installable Organizations</td><td><code>listEnterpriseInstallableOrganizations</code></td><td>List organizations in an enterprise where a GitHub App owned by the enterprise can be installed. Optional query: page, per_page.</td></tr><tr><td>List Enterprise Network Configurations</td><td><code>listEnterpriseNetworkConfigurations</code></td><td>Lists all hosted compute network configurations for an enterprise.</td></tr><tr><td>List Enterprise Org App Installation Repositories</td><td><code>listEnterpriseOrgAppInstallationRepositories</code></td><td>List repositories an app installation in an org can access. Optional query: page, per_page.</td></tr><tr><td>List Enterprise Org App Installations</td><td><code>listEnterpriseOrgAppInstallations</code></td><td>List GitHub App installations in an organization managed by the enterprise. Optional query: page, per_page.</td></tr><tr><td>List Enterprise Push Rule Bypass Requests</td><td><code>listEnterprisePushRuleBypassRequests</code></td><td>Lists push rule bypass requests within an enterprise.</td></tr><tr><td>List Enterprise Roles</td><td><code>listEnterpriseRoles</code></td><td>List all custom and built-in enterprise roles for an enterprise.</td></tr><tr><td>List Enterprise Ruleset History</td><td><code>listEnterpriseRulesetHistory</code></td><td>List the version history of an enterprise repository ruleset. Optional query: page, per_page.</td></tr><tr><td>List Enterprise Runner Downloads</td><td><code>listEnterpriseRunnerDownloads</code></td><td>List binaries for the runner application that you can download and run on an enterprise.</td></tr><tr><td>List Enterprise Runner Labels</td><td><code>listEnterpriseRunnerLabels</code></td><td>Lists all labels for a self-hosted runner configured in an enterprise.</td></tr><tr><td>List Enterprise Runners</td><td><code>listEnterpriseRunners</code></td><td>List all self-hosted runners configured for an enterprise.</td></tr><tr><td>List Enterprise Secret Scanning Alerts</td><td><code>listEnterpriseSecretScanningAlerts</code></td><td>Lists secret scanning alerts for eligible repositories in an enterprise.</td></tr><tr><td>List Enterprise Secret Scanning Bypass Requests</td><td><code>listEnterpriseSecretScanningBypassRequests</code></td><td>Lists secret scanning push protection bypass requests within an enterprise.</td></tr><tr><td>List Enterprise Self-Hosted Runner Groups</td><td><code>listEnterpriseRunnerGroups</code></td><td>Lists all self-hosted runner groups for an enterprise. Supports filtering to groups visible to a specific organization and pagination.</td></tr><tr><td>List Enterprise Team Memberships</td><td><code>listEnterpriseTeamMemberships</code></td><td>Lists the members of an enterprise team. Supports pagination (per_page, page).</td></tr><tr><td>List Enterprise Team Organizations</td><td><code>listEnterpriseTeamOrganizations</code></td><td>Lists the organizations connected to an enterprise team. Supports pagination (per_page, page).</td></tr><tr><td>List Enterprise Teams</td><td><code>listEnterpriseTeams</code></td><td>Lists all enterprise teams for an enterprise. Supports pagination (per_page, page).</td></tr><tr><td>List Issue Comments</td><td><code>listIssueComments</code></td><td>List comments on an issue. Returns a top-level JSON array of comment objects.</td></tr><tr><td>List Issue Timeline</td><td><code>listIssueTimeline</code></td><td>List timeline events for an issue Returns the chronological event stream for an issue (labeled, assigned, commented, cross-referenced, closed, etc.), with pagination.</td></tr><tr><td>List Issues</td><td><code>listIssues</code></td><td>List issues in a repository. Returns a top-level JSON array of issue objects. Supports filtering by milestone, state, assignee, creator, mentioned, labels; sorting and pagination.</td></tr><tr><td>List Labels</td><td><code>listLabels</code></td><td>List all labels for a repository. Returns a top-level JSON array of label objects.</td></tr><tr><td>List Milestones</td><td><code>listMilestones</code></td><td>List milestones for a repository. Returns a top-level JSON array of milestone objects.</td></tr><tr><td>List Organization Access To Enterprise Runner Group</td><td><code>listEnterpriseRunnerGroupOrgs</code></td><td>Lists the organizations with access to a self-hosted runner group in an enterprise.</td></tr><tr><td>List Organization Members</td><td><code>listOrgMembers</code></td><td>List all users who are members of an organization. Supports filtering by 2FA status and role, plus pagination. Response is a top-level JSON array.</td></tr><tr><td>List Organization Repositories</td><td><code>listOrgRepos</code></td><td>Lists repositories for the specified organization. Returns an array of minimal repository objects.</td></tr><tr><td>List Organization Teams</td><td><code>listOrgTeams</code></td><td>List all teams in an organization. BLOCKED (provider account-state): authenticated user belongs to no organization (listUserOrgs returned []); executing against public org 'github' Requires org admin/membership which is not constructible for this account. Wiring is correct, auth header present). Response is a top-level JSON array.</td></tr><tr><td>List Pull Request Files</td><td><code>listPullFiles</code></td><td>List the files changed in a pull request. Returns a JSON array of file objects with status, additions, deletions and patch. Up to 3000 files, paginated.</td></tr><tr><td>List Pull Request Reviews</td><td><code>listReviews</code></td><td>List reviews for a pull request in chronological order. Returns a JSON array of review objects.</td></tr><tr><td>List Pull Requests</td><td><code>listPulls</code></td><td>List pull requests in a repository. Returns a JSON array of pull request objects. Supports filtering by state, head, base, sorting and pagination.</td></tr><tr><td>List Releases</td><td><code>listReleases</code></td><td>List releases for a repository. Returns a top-level JSON array of release objects, sorted by created_at descending. Supports pagination via page/per_page.</td></tr><tr><td>List Repo Webhooks</td><td><code>listRepoWebhooks</code></td><td>List repository webhooks. Returns a top-level JSON array of hook objects.</td></tr><tr><td>List Repositories For Enterprise Code Security Configuration</td><td><code>listEnterpriseCodeSecurityConfigurationRepositories</code></td><td>Lists the repositories associated with an enterprise code security configuration.</td></tr><tr><td>List Runners In Enterprise Runner Group</td><td><code>listEnterpriseRunnerGroupRunners</code></td><td>Lists the self-hosted runners that are in a runner group for an enterprise.</td></tr><tr><td>List SCIM Groups (Enterprise)</td><td><code>listScimGroups</code></td><td>Lists provisioned SCIM groups for an enterprise. Supports pagination (startIndex, count) and SCIM filter. Returns a SCIM ListResponse.</td></tr><tr><td>List SCIM Users (Enterprise)</td><td><code>listScimUsers</code></td><td>Lists provisioned SCIM users for an enterprise. Supports pagination (startIndex, count) and SCIM filter. Returns a SCIM ListResponse.</td></tr><tr><td>List Selected Organizations Enabled For Enterprise Actions</td><td><code>listEnterprisePermissionsOrgs</code></td><td>Lists the organizations that are selected to be enabled for GitHub Actions in an enterprise. Only applicable when enabled_organizations is set to selected.</td></tr><tr><td>List Tags</td><td><code>listTags</code></td><td>Lists tags for the given repository. Returns an array of tag objects.</td></tr><tr><td>List Teams Assigned To Enterprise Role</td><td><code>listEnterpriseRoleTeams</code></td><td>List all teams assigned a given enterprise role.</td></tr><tr><td>List User Organizations</td><td><code>listUserOrgs</code></td><td>List organizations for the authenticated user. Returns both public and private memberships. Supports pagination via page and per_page. Response is a top-level JSON array.</td></tr><tr><td>List User Repositories</td><td><code>listUserRepos</code></td><td>Lists repositories that the authenticated user has explicit permission to access. Returns an array of repository objects.</td></tr><tr><td>List Users Assigned To Enterprise Role</td><td><code>listEnterpriseRoleUsers</code></td><td>List all users assigned a given enterprise role.</td></tr><tr><td>List Workflow Runs</td><td><code>listWorkflowRuns</code></td><td>List all GitHub Actions workflow runs for a repository, optionally filtered by actor, branch, event, status, etc. Returns total_count and an array of workflow_runs.</td></tr><tr><td>List Workflows</td><td><code>listWorkflows</code></td><td>List all GitHub Actions workflows in a repository. Returns a total_count and an array of workflow objects.</td></tr><tr><td>Merge Pull Request</td><td><code>mergePull</code></td><td>Merge a pull request. Optionally set commit_title, commit_message, required head sha, and merge_method (merge/squash/rebase). Returns sha, merged and message.</td></tr><tr><td>Ping Repo Webhook</td><td><code>pingRepoWebhook</code></td><td>Trigger a ping event to be sent to the webhook.</td></tr><tr><td>Promote Enterprise Custom Property</td><td><code>promoteEnterpriseCustomProperty</code></td><td>Promote an organization-level custom property to the enterprise so it applies across all organizations.</td></tr><tr><td>Remove All Enterprise Roles From Team</td><td><code>removeAllEnterpriseRolesFromTeam</code></td><td>Remove all enterprise role assignments from a team.</td></tr><tr><td>Remove All Enterprise Roles From User</td><td><code>removeAllEnterpriseRolesFromUser</code></td><td>Remove all enterprise role assignments from a user.</td></tr><tr><td>Remove All Enterprise Runner Labels</td><td><code>removeEnterpriseRunnerAllLabels</code></td><td>Remove all custom labels from a self-hosted runner configured in an enterprise.</td></tr><tr><td>Remove Enterprise Announcement</td><td><code>removeEnterpriseAnnouncement</code></td><td>Remove the global announcement banner from an enterprise.</td></tr><tr><td>Remove Enterprise Role From Team</td><td><code>removeEnterpriseRoleFromTeam</code></td><td>Remove a specific enterprise role from a team.</td></tr><tr><td>Remove Enterprise Role From User</td><td><code>removeEnterpriseRoleFromUser</code></td><td>Remove a specific enterprise role from a user.</td></tr><tr><td>Remove Enterprise Runner Label</td><td><code>removeEnterpriseRunnerLabel</code></td><td>Remove a custom label from a self-hosted runner configured in an enterprise.</td></tr><tr><td>Remove Enterprise Team Member</td><td><code>removeEnterpriseTeamMembership</code></td><td>Removes a single user's membership from an enterprise team via DELETE.</td></tr><tr><td>Remove Enterprise Team Members (Bulk)</td><td><code>removeEnterpriseTeamMemberships</code></td><td>Bulk-removes members from an enterprise team by username.</td></tr><tr><td>Remove Enterprise Team Organization</td><td><code>removeEnterpriseTeamOrganization</code></td><td>Disconnects a single organization from an enterprise team via DELETE.</td></tr><tr><td>Remove Enterprise Team Organizations (Bulk)</td><td><code>removeEnterpriseTeamOrganizations</code></td><td>Bulk-disconnects organizations from an enterprise team by organization slug.</td></tr><tr><td>Remove Organization Access From Enterprise Runner Group</td><td><code>removeEnterpriseRunnerGroupOrg</code></td><td>Removes an organization from the list of organizations that have access to a self-hosted runner group in an enterprise.</td></tr><tr><td>Remove Repositories From Enterprise Org App Installation</td><td><code>removeEnterpriseOrgAppInstallationRepositories</code></td><td>Remove repositories from an app installation's selected-repository set in an org. Pass a pre-stringified JSON body of the form {"repositories":["repo-a","repo-b"]}.</td></tr><tr><td>Remove Runner From Enterprise Runner Group</td><td><code>removeEnterpriseRunnerGroupRunner</code></td><td>Removes a self-hosted runner from a runner group for an enterprise. The runner is not removed from the enterprise.</td></tr><tr><td>Remove Teams From Enterprise Copilot Subscription</td><td><code>removeEnterpriseCopilotTeams</code></td><td>Removes enterprise teams from the Copilot subscription for an enterprise.</td></tr><tr><td>Remove Users From Enterprise Copilot Subscription</td><td><code>removeEnterpriseCopilotUsers</code></td><td>Removes users from the Copilot subscription for an enterprise.</td></tr><tr><td>Replace SCIM Group (Enterprise)</td><td><code>replaceScimGroup</code></td><td>Replaces an existing SCIM group (full update via PUT) in an enterprise. Returns the updated group resource.</td></tr><tr><td>Replace SCIM User (Enterprise)</td><td><code>replaceScimUser</code></td><td>Replaces an existing SCIM user (full update via PUT) in an enterprise. Returns the updated user resource.</td></tr><tr><td>Search Code</td><td><code>searchCode</code></td><td>Search for file contents and file paths on GitHub. Note: code search has a stricter rate limit (10 req/min) and only searches the default branch of indexed repositories.</td></tr><tr><td>Search Issues And Pull Requests</td><td><code>searchIssues</code></td><td>Search for issues and pull requests on GitHub using keywords and qualifiers.</td></tr><tr><td>Search Repositories</td><td><code>searchRepos</code></td><td>Search for repositories on GitHub using keywords and qualifiers. Returns up to 1000 results, 100 per page.</td></tr><tr><td>Search Users</td><td><code>searchUsers</code></td><td>Search for users on GitHub using keywords and qualifiers.</td></tr><tr><td>Set Allowed Actions For Enterprise</td><td><code>setEnterpriseAllowedActions</code></td><td>Sets the selected actions and reusable workflows that are allowed in an enterprise. Only applicable when allowed_actions is set to selected.</td></tr><tr><td>Set Default Enterprise Code Security Configuration</td><td><code>setEnterpriseCodeSecurityDefaultConfiguration</code></td><td>Sets a code security configuration as a default for an enterprise to be applied to new repositories.</td></tr><tr><td>Set Enterprise Actions Permissions</td><td><code>setEnterpriseActionsPermissions</code></td><td>Sets the GitHub Actions permissions policy for organizations and allowed actions in an enterprise.</td></tr><tr><td>Set Enterprise Announcement</td><td><code>setEnterpriseAnnouncement</code></td><td>Set or update the global announcement banner for an enterprise. Pass a pre-stringified JSON body with fields: announcement (required), expires_at (optional ISO8601), user_dismissible (optional boolean).</td></tr><tr><td>Set Enterprise Artifact And Log Retention Settings</td><td><code>setEnterpriseArtifactRetention</code></td><td>Sets the artifact and log retention period (in days) for an enterprise.</td></tr><tr><td>Set Enterprise Cache Retention Limit</td><td><code>setEnterpriseCacheRetentionLimit</code></td><td>Sets the GitHub Actions cache retention limit policy for an enterprise.</td></tr><tr><td>Set Enterprise Cache Storage Limit</td><td><code>setEnterpriseCacheStorageLimit</code></td><td>Sets the GitHub Actions cache storage limit policy for an enterprise.</td></tr><tr><td>Set Enterprise Code Security And Analysis</td><td><code>setEnterpriseCodeSecurityAnalysis</code></td><td>Update enterprise-wide code security and analysis settings. Pass a pre-stringified JSON body with any of: advanced_security_enabled_for_new_repositories, dependabot_alerts_enabled_for_new_repositories, secret_scanning_enabled_for_new_repositories, secret_scanning_push_protection_enabled_for_new_repositories, secret_scanning_push_protection_custom_link.</td></tr><tr><td>Set Enterprise Default Workflow Permissions</td><td><code>setEnterpriseWorkflowPermissions</code></td><td>Sets the default workflow permissions granted to the GITHUB_TOKEN and whether GitHub Actions can approve pull requests, for an enterprise.</td></tr><tr><td>Set Enterprise Fork PR Contributor Approval Policy</td><td><code>setEnterpriseForkPrContributorApproval</code></td><td>Sets the fork pull request contributor approval policy for an enterprise.</td></tr><tr><td>Set Enterprise Fork PR Workflows In Private Repos</td><td><code>setEnterpriseForkPrPrivateRepos</code></td><td>Sets whether workflows triggered by pull requests from forks are allowed to run on private repositories in an enterprise, and related token/secret settings.</td></tr><tr><td>Set Enterprise OIDC Issuer</td><td><code>setEnterpriseOidcIssuer</code></td><td>Sets the GitHub OIDC custom issuer policy for an enterprise.</td></tr><tr><td>Set Enterprise Org App Installation Repository Selection</td><td><code>setEnterpriseOrgAppInstallationRepositorySelection</code></td><td>Change an app installation's repository selection mode in an org. Pass a pre-stringified JSON body, e.g. {"repository_selection":"all"} or {"repository_selection":"selected"}.</td></tr><tr><td>Set Enterprise Runner Labels</td><td><code>setEnterpriseRunnerLabels</code></td><td>Remove all previous custom labels and set the new custom labels for a specific self-hosted runner in an enterprise.</td></tr><tr><td>Set Enterprise Security Product Enablement</td><td><code>setEnterpriseSecurityProductEnablement</code></td><td>Enable or disable a GitHub Advanced Security product for all organizations in an enterprise. security_product is one of advanced_security, dependabot_alerts, secret_scanning, secret_scanning_push_protection. enablement is enable_all or disable_all.</td></tr><tr><td>Set Enterprise Self-Hosted Runners Settings</td><td><code>setEnterpriseSelfHostedRunnersSettings</code></td><td>Sets whether self-hosted runners are disabled for all organizations in an enterprise.</td></tr><tr><td>Set Organization Access For Enterprise Runner Group</td><td><code>setEnterpriseRunnerGroupOrgs</code></td><td>Replaces the list of organizations that have access to a self-hosted runner group in an enterprise.</td></tr><tr><td>Set Runners In Enterprise Runner Group</td><td><code>setEnterpriseRunnerGroupRunners</code></td><td>Replaces the list of self-hosted runners that are part of a runner group in an enterprise.</td></tr><tr><td>Set Selected Organizations Enabled For Enterprise Actions</td><td><code>setEnterprisePermissionsOrgs</code></td><td>Replaces the list of selected organizations that are enabled for GitHub Actions in an enterprise. Only applicable when enabled_organizations is set to selected.</td></tr><tr><td>Update Enterprise Audit Log Stream</td><td><code>updateEnterpriseAuditLogStream</code></td><td>Update an existing audit log streaming endpoint. Pass a pre-stringified JSON body with enabled, stream_type, and vendor_specific.</td></tr><tr><td>Update Enterprise Budget</td><td><code>updateEnterpriseBudget</code></td><td>Updates a budget configured for an enterprise.</td></tr><tr><td>Update Enterprise Code Security Configuration</td><td><code>updateEnterpriseCodeSecurityConfiguration</code></td><td>Updates a code security configuration in an enterprise.</td></tr><tr><td>Update Enterprise Custom Properties Schema</td><td><code>updateEnterpriseCustomPropertiesSchema</code></td><td>Create or update custom property definitions for an enterprise (bulk). Pass a pre-stringified JSON body of the form {"properties":[{"property_name":"environment","value_type":"single_select","required":true,"default_value":"production","allowed_values":["production","staging"]}]}.</td></tr><tr><td>Update Enterprise Hosted Runner</td><td><code>updateEnterpriseHostedRunner</code></td><td>Updates a GitHub-hosted runner for an enterprise.</td></tr><tr><td>Update Enterprise Network Configuration</td><td><code>updateEnterpriseNetworkConfiguration</code></td><td>Updates a hosted compute network configuration for an enterprise.</td></tr><tr><td>Update Enterprise Ruleset</td><td><code>updateEnterpriseRuleset</code></td><td>Update an enterprise repository ruleset. Pass a pre-stringified JSON body with any of name, enforcement, target, conditions, rules, bypass_actors.</td></tr><tr><td>Update Enterprise Self-Hosted Runner Group</td><td><code>updateEnterpriseRunnerGroup</code></td><td>Updates the name, visibility, or workflow restrictions of a self-hosted runner group for an enterprise. Returns the updated runner group object.</td></tr><tr><td>Update Enterprise Team</td><td><code>updateEnterpriseTeam</code></td><td>Updates an existing enterprise team (PATCH). Only fields provided are changed. Returns the updated team.</td></tr><tr><td>Update Issue</td><td><code>updateIssue</code></td><td>Update an issue (title, body, state, assignees, labels, milestone, etc.) by issue number. Returns the updated issue object.</td></tr><tr><td>Update Pull Request</td><td><code>updatePull</code></td><td>Update an existing pull request: change title, body, state (open/closed), base branch, or maintainer_can_modify. Returns the updated pull request object.</td></tr><tr><td>Update Release</td><td><code>updateRelease</code></td><td>Update a release identified by release_id. Users with push access can edit a release. All body fields are optional. Returns the updated release object (200).</td></tr><tr><td>Update Repo Webhook</td><td><code>updateRepoWebhook</code></td><td>Update a repository webhook by its id (events, active state, config). The config block is replaced on every update, so send url, content_type and secret together (an omitted secret is removed and content_type falls back to form). Events are optional; if omitted the current events are kept. Returns the updated hook object.</td></tr><tr><td>Update Repository</td><td><code>updateRepo</code></td><td>Updates a repository's settings (partial update: only the fields you pass are sent and changed). Requires admin access. Set archived=false to unarchive. Returns the full updated repository object.</td></tr><tr><td>Update SCIM Group (Enterprise)</td><td><code>updateScimGroup</code></td><td>Partially updates a SCIM group (PATCH with SCIM Operations) in an enterprise. Returns the updated group resource.</td></tr><tr><td>Update SCIM User (Enterprise)</td><td><code>updateScimUser</code></td><td>Partially updates a SCIM user (PATCH with SCIM Operations) in an enterprise. Commonly used to activate/deactivate a user. Returns the updated user resource.</td></tr><tr><td>Upsert Enterprise Custom Property</td><td><code>upsertEnterpriseCustomProperty</code></td><td>Create or update a single custom property definition for an enterprise. Pass a pre-stringified JSON body, e.g. {"value_type":"single_select","required":true,"default_value":"production","description":"Deployment env","allowed_values":["production","staging"]}.</td></tr></tbody></table>

</details>

## Events

Start a workflow when one of these happens, with an [app event trigger](https://docs.fastn.ai/build/integrations/triggers.md).

<table><thead><tr><th width="240">Event</th><th width="260">Id</th><th>When it fires</th></tr></thead><tbody><tr><td>Branch or Tag Created</td><td><code>create</code></td><td>A Git branch or tag was created. GitHub sends event type 'create'. This event has no 'action' field.</td></tr><tr><td>Branch or Tag Deleted</td><td><code>delete</code></td><td>A Git branch or tag was deleted. GitHub sends event type 'delete'. This event has no 'action' field.</td></tr><tr><td>Branch Protection Rule Created</td><td><code>branch_protection_rule.created</code></td><td>A branch protection rule was created. GitHub sends event type 'branch_protection_rule'.</td></tr><tr><td>Branch Protection Rule Deleted</td><td><code>branch_protection_rule.deleted</code></td><td>A branch protection rule was deleted.</td></tr><tr><td>Branch Protection Rule Edited</td><td><code>branch_protection_rule.edited</code></td><td>A branch protection rule was edited.</td></tr><tr><td>Check Run</td><td><code>check_run</code></td><td>Activity on a check run. GitHub sends event type 'check_run'; payload 'action' is one of created, completed, rerequested, requested_action.</td></tr><tr><td>Check Suite</td><td><code>check_suite</code></td><td>Activity on a check suite. GitHub sends event type 'check_suite'; payload 'action' is one of completed, requested, rerequested.</td></tr><tr><td>Commit Comment Created</td><td><code>commit_comment.created</code></td><td>A commit comment was created. GitHub sends event type 'commit_comment'; payload 'action' is 'created'.</td></tr><tr><td>Deployment Created</td><td><code>deployment.created</code></td><td>A deployment was created. GitHub sends event type 'deployment'; payload 'action' is 'created'.</td></tr><tr><td>Deployment Status Created</td><td><code>deployment_status.created</code></td><td>A deployment status was created. GitHub sends event type 'deployment_status'; payload 'action' is 'created'.</td></tr></tbody></table>

<details>

<summary>View 91 more events</summary>

<table><thead><tr><th width="240">Event</th><th width="260">Id</th><th>When it fires</th></tr></thead><tbody><tr><td>Discussion Answered</td><td><code>discussion.answered</code></td><td>A comment on a discussion was marked as the answer.</td></tr><tr><td>Discussion Comment Created</td><td><code>discussion_comment.created</code></td><td>A comment on a discussion was created. GitHub sends event type 'discussion_comment'.</td></tr><tr><td>Discussion Created</td><td><code>discussion.created</code></td><td>A discussion was created. GitHub sends event type 'discussion'.</td></tr><tr><td>Discussion Edited</td><td><code>discussion.edited</code></td><td>A discussion was edited.</td></tr><tr><td>GitHub Pages Build</td><td><code>page_build</code></td><td>A GitHub Pages site was built. GitHub sends event type 'page_build'. This event has no 'action' field.</td></tr><tr><td>Issue Assigned</td><td><code>issues.assigned</code></td><td>A user was assigned to an issue.</td></tr><tr><td>Issue Closed</td><td><code>issues.closed</code></td><td>An issue was closed.</td></tr><tr><td>Issue Comment Created</td><td><code>issue_comment.created</code></td><td>A comment on an issue was created. GitHub sends event type 'issue_comment' in the X-GitHub-Event header.</td></tr><tr><td>Issue Comment Deleted</td><td><code>issue_comment.deleted</code></td><td>A comment on an issue was deleted.</td></tr><tr><td>Issue Comment Edited</td><td><code>issue_comment.edited</code></td><td>A comment on an issue was edited.</td></tr><tr><td>Issue Deleted</td><td><code>issues.deleted</code></td><td>An issue was deleted.</td></tr><tr><td>Issue Demilestoned</td><td><code>issues.demilestoned</code></td><td>An issue was removed from a milestone.</td></tr><tr><td>Issue Edited</td><td><code>issues.edited</code></td><td>The title or body of an issue was edited.</td></tr><tr><td>Issue Labeled</td><td><code>issues.labeled</code></td><td>A label was added to an issue.</td></tr><tr><td>Issue Locked</td><td><code>issues.locked</code></td><td>Conversation on an issue was locked.</td></tr><tr><td>Issue Milestoned</td><td><code>issues.milestoned</code></td><td>An issue was added to a milestone.</td></tr><tr><td>Issue Opened</td><td><code>issues.opened</code></td><td>An issue was opened. GitHub sends event type 'issues' in the X-GitHub-Event header and the specific sub-event in the payload 'action' field.</td></tr><tr><td>Issue Pinned</td><td><code>issues.pinned</code></td><td>An issue was pinned to a repository.</td></tr><tr><td>Issue Reopened</td><td><code>issues.reopened</code></td><td>A closed issue was reopened.</td></tr><tr><td>Issue Transferred</td><td><code>issues.transferred</code></td><td>An issue was transferred to another repository.</td></tr><tr><td>Issue Unassigned</td><td><code>issues.unassigned</code></td><td>A user was unassigned from an issue.</td></tr><tr><td>Issue Unlabeled</td><td><code>issues.unlabeled</code></td><td>A label was removed from an issue.</td></tr><tr><td>Issue Unlocked</td><td><code>issues.unlocked</code></td><td>Conversation on an issue was unlocked.</td></tr><tr><td>Issue Unpinned</td><td><code>issues.unpinned</code></td><td>An issue was unpinned from a repository.</td></tr><tr><td>Label Created</td><td><code>label.created</code></td><td>A label was created. GitHub sends event type 'label' in the X-GitHub-Event header.</td></tr><tr><td>Label Deleted</td><td><code>label.deleted</code></td><td>A label was deleted.</td></tr><tr><td>Label Edited</td><td><code>label.edited</code></td><td>A label was edited.</td></tr><tr><td>Member Added</td><td><code>member.added</code></td><td>A user accepted an invitation to a repository. GitHub sends event type 'member'.</td></tr><tr><td>Member Edited</td><td><code>member.edited</code></td><td>The permissions of a collaborator on a repository were changed.</td></tr><tr><td>Member Removed</td><td><code>member.removed</code></td><td>A collaborator was removed from a repository.</td></tr><tr><td>Milestone Closed</td><td><code>milestone.closed</code></td><td>A milestone was closed.</td></tr><tr><td>Milestone Created</td><td><code>milestone.created</code></td><td>A milestone was created. GitHub sends event type 'milestone' in the X-GitHub-Event header.</td></tr><tr><td>Milestone Deleted</td><td><code>milestone.deleted</code></td><td>A milestone was deleted.</td></tr><tr><td>Milestone Edited</td><td><code>milestone.edited</code></td><td>A milestone was edited.</td></tr><tr><td>Milestone Opened</td><td><code>milestone.opened</code></td><td>A milestone was opened.</td></tr><tr><td>Pull Request Assigned</td><td><code>pull_request.assigned</code></td><td>A user was assigned to a pull request. GitHub sends event type 'pull_request' in the X-GitHub-Event header.</td></tr><tr><td>Pull Request Auto Merge Disabled</td><td><code>pull_request.auto_merge_disabled</code></td><td>Auto merge was disabled for a pull request. GitHub sends event type 'pull_request' in the X-GitHub-Event header.</td></tr><tr><td>Pull Request Auto Merge Enabled</td><td><code>pull_request.auto_merge_enabled</code></td><td>Auto merge was enabled for a pull request. GitHub sends event type 'pull_request' in the X-GitHub-Event header.</td></tr><tr><td>Pull Request Closed</td><td><code>pull_request.closed</code></td><td>A pull request was closed. If merged is true it was merged, otherwise it was closed without merging. GitHub sends event type 'pull_request' in the X-GitHub-Event header.</td></tr><tr><td>Pull Request Converted To Draft</td><td><code>pull_request.converted_to_draft</code></td><td>A pull request was converted to a draft. GitHub sends event type 'pull_request' in the X-GitHub-Event header.</td></tr><tr><td>Pull Request Demilestoned</td><td><code>pull_request.demilestoned</code></td><td>A pull request was removed from a milestone. GitHub sends event type 'pull_request' in the X-GitHub-Event header.</td></tr><tr><td>Pull Request Dequeued</td><td><code>pull_request.dequeued</code></td><td>A pull request was removed from the merge queue. GitHub sends event type 'pull_request' in the X-GitHub-Event header.</td></tr><tr><td>Pull Request Edited</td><td><code>pull_request.edited</code></td><td>The title or body of a pull request was edited, or the base branch was changed. GitHub sends event type 'pull_request' in the X-GitHub-Event header.</td></tr><tr><td>Pull Request Enqueued</td><td><code>pull_request.enqueued</code></td><td>A pull request was added to the merge queue. GitHub sends event type 'pull_request' in the X-GitHub-Event header.</td></tr><tr><td>Pull Request Labeled</td><td><code>pull_request.labeled</code></td><td>A label was added to a pull request. GitHub sends event type 'pull_request' in the X-GitHub-Event header.</td></tr><tr><td>Pull Request Locked</td><td><code>pull_request.locked</code></td><td>Conversation on a pull request was locked. GitHub sends event type 'pull_request' in the X-GitHub-Event header.</td></tr><tr><td>Pull Request Milestoned</td><td><code>pull_request.milestoned</code></td><td>A pull request was added to a milestone. GitHub sends event type 'pull_request' in the X-GitHub-Event header.</td></tr><tr><td>Pull Request Opened</td><td><code>pull_request.opened</code></td><td>A pull request was opened. GitHub sends event type 'pull_request' in the X-GitHub-Event header.</td></tr><tr><td>Pull Request Ready For Review</td><td><code>pull_request.ready_for_review</code></td><td>A draft pull request was marked ready for review. GitHub sends event type 'pull_request' in the X-GitHub-Event header.</td></tr><tr><td>Pull Request Reopened</td><td><code>pull_request.reopened</code></td><td>A closed pull request was reopened. GitHub sends event type 'pull_request' in the X-GitHub-Event header.</td></tr><tr><td>Pull Request Review Comment Created</td><td><code>pull_request_review_comment.created</code></td><td>A comment on a pull request diff was created. GitHub sends event type 'pull_request_review_comment'.</td></tr><tr><td>Pull Request Review Comment Deleted</td><td><code>pull_request_review_comment.deleted</code></td><td>A comment on a pull request diff was deleted. GitHub sends event type 'pull_request_review_comment'.</td></tr><tr><td>Pull Request Review Comment Edited</td><td><code>pull_request_review_comment.edited</code></td><td>A comment on a pull request diff was edited. GitHub sends event type 'pull_request_review_comment'.</td></tr><tr><td>Pull Request Review Dismissed</td><td><code>pull_request_review.dismissed</code></td><td>A review on a pull request was dismissed. GitHub sends event type 'pull_request_review'.</td></tr><tr><td>Pull Request Review Edited</td><td><code>pull_request_review.edited</code></td><td>The body of a review on a pull request was edited. GitHub sends event type 'pull_request_review'.</td></tr><tr><td>Pull Request Review Request Removed</td><td><code>pull_request.review_request_removed</code></td><td>A request for review by a person or team was removed from a pull request. GitHub sends event type 'pull_request' in the X-GitHub-Event header.</td></tr><tr><td>Pull Request Review Requested</td><td><code>pull_request.review_requested</code></td><td>Review by a person or team was requested for a pull request. GitHub sends event type 'pull_request' in the X-GitHub-Event header.</td></tr><tr><td>Pull Request Review Submitted</td><td><code>pull_request_review.submitted</code></td><td>A review on a pull request was submitted. GitHub sends event type 'pull_request_review' in the X-GitHub-Event header.</td></tr><tr><td>Pull Request Review Thread Resolved</td><td><code>pull_request_review_thread.resolved</code></td><td>A pull request review comment thread was resolved. GitHub sends event type 'pull_request_review_thread'.</td></tr><tr><td>Pull Request Review Thread Unresolved</td><td><code>pull_request_review_thread.unresolved</code></td><td>A pull request review comment thread was marked as unresolved. GitHub sends event type 'pull_request_review_thread'.</td></tr><tr><td>Pull Request Stacked</td><td><code>pull_request.stacked</code></td><td>A pull request was stacked on another pull request. GitHub sends event type 'pull_request' in the X-GitHub-Event header.</td></tr><tr><td>Pull Request Synchronize</td><td><code>pull_request.synchronize</code></td><td>A pull request's head branch was updated (new commits pushed, or the base branch changed). GitHub sends event type 'pull_request' in the X-GitHub-Event header.</td></tr><tr><td>Pull Request Unassigned</td><td><code>pull_request.unassigned</code></td><td>A user was unassigned from a pull request. GitHub sends event type 'pull_request' in the X-GitHub-Event header.</td></tr><tr><td>Pull Request Unlabeled</td><td><code>pull_request.unlabeled</code></td><td>A label was removed from a pull request. GitHub sends event type 'pull_request' in the X-GitHub-Event header.</td></tr><tr><td>Pull Request Unlocked</td><td><code>pull_request.unlocked</code></td><td>Conversation on a pull request was unlocked. GitHub sends event type 'pull_request' in the X-GitHub-Event header.</td></tr><tr><td>Push</td><td><code>push</code></td><td>One or more commits were pushed to a repository branch or tag. GitHub sends event type 'push' in the X-GitHub-Event header. This event has no 'action' field.</td></tr><tr><td>Release Created</td><td><code>release.created</code></td><td>A draft was saved, or a release/pre-release was published without previously being saved as a draft.</td></tr><tr><td>Release Deleted</td><td><code>release.deleted</code></td><td>A release, pre-release, or draft release was deleted.</td></tr><tr><td>Release Edited</td><td><code>release.edited</code></td><td>The details of a release, pre-release, or draft release were edited.</td></tr><tr><td>Release Prereleased</td><td><code>release.prereleased</code></td><td>A pre-release was created.</td></tr><tr><td>Release Published</td><td><code>release.published</code></td><td>A release, pre-release, or draft of a release was published. GitHub sends event type 'release'.</td></tr><tr><td>Release Released</td><td><code>release.released</code></td><td>A release was published, or a pre-release was changed to a release.</td></tr><tr><td>Release Unpublished</td><td><code>release.unpublished</code></td><td>A release or pre-release was unpublished.</td></tr><tr><td>Repository Archived</td><td><code>repository.archived</code></td><td>A repository was archived.</td></tr><tr><td>Repository Created</td><td><code>repository.created</code></td><td>A repository was created. GitHub sends event type 'repository'.</td></tr><tr><td>Repository Edited</td><td><code>repository.edited</code></td><td>The topics, default branch, description, or homepage of a repository was edited.</td></tr><tr><td>Repository Forked</td><td><code>fork</code></td><td>A user forked the repository. GitHub sends event type 'fork'. This event has no 'action' field.</td></tr><tr><td>Repository Made Public</td><td><code>public</code></td><td>A private repository was made public. GitHub sends event type 'public'. This event has no 'action' field.</td></tr><tr><td>Repository Privatized</td><td><code>repository.privatized</code></td><td>The visibility of a repository was changed to private.</td></tr><tr><td>Repository Publicized</td><td><code>repository.publicized</code></td><td>The visibility of a repository was changed to public.</td></tr><tr><td>Repository Renamed</td><td><code>repository.renamed</code></td><td>A repository was renamed.</td></tr><tr><td>Repository Unarchived</td><td><code>repository.unarchived</code></td><td>A repository was unarchived.</td></tr><tr><td>Star Created</td><td><code>star.created</code></td><td>A star was added to the repository. GitHub sends event type 'star'; payload 'action' is 'created'.</td></tr><tr><td>Star Deleted</td><td><code>star.deleted</code></td><td>A star was removed from the repository. GitHub sends event type 'star'; payload 'action' is 'deleted'.</td></tr><tr><td>Status</td><td><code>status</code></td><td>The status of a Git commit changed. GitHub sends event type 'status'. This event has no 'action' field.</td></tr><tr><td>Watch Started</td><td><code>watch.started</code></td><td>A user starred (watched) the repository. GitHub sends event type 'watch'; payload 'action' is 'started'.</td></tr><tr><td>Wiki Page Updated</td><td><code>gollum</code></td><td>A wiki page was created or updated. GitHub sends event type 'gollum'. This event has no 'action' field.</td></tr><tr><td>Workflow Job</td><td><code>workflow_job</code></td><td>Activity on a workflow job in a run. GitHub sends event type 'workflow_job'; payload 'action' is one of queued, in_progress, completed.</td></tr><tr><td>Workflow Run Completed</td><td><code>workflow_run.completed</code></td><td>A workflow run finished.</td></tr><tr><td>Workflow Run In Progress</td><td><code>workflow_run.in_progress</code></td><td>A workflow run is in progress.</td></tr><tr><td>Workflow Run Requested</td><td><code>workflow_run.requested</code></td><td>A workflow run was requested. GitHub sends event type 'workflow_run'.</td></tr></tbody></table>

</details>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.fastn.ai/connectors/catalog/developer-tools/github.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
