The GitHub token of the workspace (DEC-019). The token itself is never returned.
const url = 'https://example.com/api/v1/admin/github';const options = {method: 'GET'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://example.com/api/v1/admin/githubResponses
Section titled “ Responses ”The connection.
The one GitHub connection of the workspace, an App or a token, never both (docs/specs/github-app.md).
object
Whether this mode can create a GitHub App. Hosted mode only.
The workspace’s private GitHub App.
object
The org or the personal account that owns the App.
The App’s settings page on GitHub, where its owner deletes it.
The App comes from the SPECCY_GITHUB_APP_ variables, so the UI cannot change it.
What the installation lacks for pull request reviews and the other features, such as “checks: write” or “event issue_comment”. GitHub cannot change an existing App by API, so its owner adds them on the settings page.
The GitHub account of the token, from the last check.
Example
{ "kind": "none"}default
Section titled “default”An error.
RFC 9457 problem details with a stable code.
object
A stable machine-readable error code.
Examplegenerated
{ "type": "example", "title": "example", "status": 1, "detail": "example", "instance": "example", "code": "example"}