Create a remove token for an organization
Returns a token that you can pass to the config
script to remove a self-hosted runner from an organization. The token expires after one hour.
You must authenticate using an access token with the admin:org
scope to use this endpoint.
Example using remove token
To remove your self-hosted runner from an organization, replace TOKEN
with the remove token provided by this
endpoint.
./config.sh remove --token TOKEN
Path Parameters
Response
201 application/json
Response
Response
Authentication Token
Authentication Token
The token used for authentication
Example:v1.1f699f1069f60xxx
The time this token expires
Example:2016-07-11T22:14:10Z
Example:{"issues":"read","deployments":"write"}
A git repository
Show Child Parameters
Example:config.yaml
Describe whether all repositories have been selected or there’s a selection involved
Allowed values:allselected
Path Parameters
Get a self-hosted runner for an organization
Gets a specific self-hosted runner configured in an organization.
You must authenticate using an access token with the admin:org
scope to use this endpoint.
Path Parameters
Unique identifier of the self-hosted runner.
Response
200 application/json
Response
Response
Self hosted runners
A self hosted runner
The id of the runner.
Example:5
The name of the runner.
Example:iMac
The Operating System of the runner.
Example:macos
The status of the runner.
Example:online
A label for a self hosted runner
Show Child Parameters
Path Parameters
Delete a self-hosted runner from an organization
Forces the removal of a self-hosted runner from an organization. You can use this endpoint to completely remove the runner when the machine you were using no longer exists.
You must authenticate using an access token with the admin:org
scope to use this endpoint.
Path Parameters
Unique identifier of the self-hosted runner.
Response
204
Response
Response
Path Parameters
List organization secrets
Lists all secrets available in an organization without revealing their encrypted values. You must authenticate using an access token with the admin:org
scope to use this endpoint. GitHub Apps must have the secrets
organization permission to use this endpoint.
Query Parameters
Results per page (max 100)
Default:30
Page number of the results to fetch.
Default:1
Path Parameters
Response
200 application/json
Response
Response
Secrets for GitHub Actions for an organization.
Show Child Parameters
Path Parameters
Query Parameters
Get an organization public key
Gets your public key, which you need to encrypt secrets. You need to encrypt a secret before you can create or update secrets. You must authenticate using an access token with the admin:org
scope to use this endpoint. GitHub Apps must have the secrets
organization permission to use this endpoint.
Path Parameters
Response
200 application/json
Response
Response
ActionsPublicKey
The public key used for setting Actions Secrets.
The identifier for the key.
Example:1234567
The Base64 encoded public key.
Example:hBT5WZEj8ZoOv6TYJsfWq7MxTEQopZO5/IT3ZCVQPzs=
Example:2
Example:https://api.github.com/user/keys/2
Example:ssh-rsa AAAAB3NzaC1yc2EAAA
Example:2011-01-26T19:01:12Z