ci.runner-pools.connect-githubRun the GitHub Actions jobs of a repository that stays on GitHub on a runner pool
Needs the GitHub App installed on the repository’s GitHub organization (Git → Connect GitHub); installing it already turns this on for every repository it covers. A job whose runs-on names the pool’s label (and otherwise only self-hosted, linux, x64) then runs on the pool. Pull requests from forks are refused and their run cancelled unless allowForkPullRequests. Calling it again changes nothing; with another pool (--pool) the repository reaches that pool too, for jobs naming that pool’s labels (one repository, several label sets).
Request syntax
POST /ci/api/runner-pools/connect-github/{repository}
{
"pool": "string",
"allowForkPullRequests": "boolean"
}Path parameters
repositoryRequiredstring
Constraints: /^[A-Za-z0-9-]{1,39}\/[A-Za-z0-9._-]{1,100}$/
Request body
poolOptionalstring
Name or id of the runner pool; omitted: the pool GitHub jobs already go to, else a new cloud-only pool github-actions (label deutsche-cloud, s-4, 0 to 10 machines)
Constraints: 1-40 chars
allowForkPullRequestsOptionalboolean
Run pull requests from forks on the pool too; off by default
Response
201 with the binding: id, poolId, poolName, poolLabels, account, repository, allowForkPullRequests, runnerGroupId (the GitHub runner group its runners join), note (set when GitHub refused a group of its own), runsOn (what the workflow names, e.g. [self-hosted, deutsche-cloud]) and createdPool (true when the default pool was made now). 404 when no connected installation of the GitHub App covers the repository, or the pool is not found; 400 for a personal GitHub account; 403 without ci:CreateRunnerPool when a pool has to be made.
A JSON response is wrapped as { "success": true, "data": … }; the CLI prints the whole body with --json.
Errors
- 400The request does not pass the schema above. The body is { "error": …, "issues": […] }, one issue per field.
- 401No credentials, or an access key that is unknown, revoked or expired.
- 403The caller's policies do not allow ci:ConnectGithubRunners on this resource. The body names the action and the resource, and the refusal is recorded in the audit log.
- 404The resource does not exist in your organization.
Examples
The required parameters only, with example values. Replace id and the other placeholders with your own.
dcloud ci runner-pools connect-github repositorycurl -X POST "https://console.platform.deutschecloud.app/ci/api/runner-pools/connect-github/repository" \
-H "Authorization: EWS-ACCESS-KEY $ACCESS_KEY" \
-H "Content-Type: application/json" \
-d '{}'import { DcloudClient } from '@dcloud/sdk';
const client = new DcloudClient();
const result = await client.ci.runnerPools.connectGithub({ repository: "repository" });from dcloud import Client
client = Client()
result = client.ci.runner_pools.connect_github(repository="repository")Generated from the API description, the same one the API checks requests against and the CLI is built from. MCP tool: dcloud_ci_runner-pools_connect-github.