---
title: "network.github-token-result@1 · OpenVibe.Services"
canonical: "https://openvibe.services/docs/contracts/network.github-token-result"
updated: null
---

# network.github-token-result@1 · OpenVibe.Services

HTML: [network.github-token-result@1 · OpenVibe.Services](https://openvibe.services/docs/contracts/network.github-token-result)

# NetworkGithubTokenResult `network.github-token-result@1`

Generated at 2026-12-01 05:42:00 UTC from [`openvibe-contracts v0.454.0`](https://github.com/OpenVibers/OpenVibe.Contracts/tree/v0.454.0) and [`openvibe-sdk v0.193.0`](https://github.com/OpenVibers/OpenVibe.SDK/tree/v0.193.0).

- Version: 1.0.0
- Owner: network
- Visibility: first-party
- Status: active
- Compatibility: backward
- Schema: [`https://openvibe.network/contracts/network/github-token-result.v1.json`](/docs/contracts/network.github-token-result.json)

network.github-token-result@1: the answer of network.integration.github.read on OpenVibe.Network. GET /internal/integrations/github-token (a service token holding the capability; the shared internal key is refused) → { token, source }: the network's read-only GitHub API token and where it is set (GITHUB\_TOKEN in the environment, or the value the owner saved in admin). Answered with Cache-Control: no-store; 404 { error: not\_configured, detail } when no token is set.

## Fields

| Field | Type | Required | Description | Constraints |
| --- | --- | --- | --- | --- |
| `token` | string | yes | A GitHub token (ghp\_…, github\_pat\_…). A secret: never log or show it. | - `minLength 1` |
| `source` | enum | yes | env: GITHUB\_TOKEN; database: saved in admin (Settings → GitHub). | - `one of "env", "database", "unset"` |

## Examples

From the contract's own test fixtures: valid ones validate, rejected ones must fail.

 Valid: env

~~~~
{
  "token": "ghp_0123456789abcdefghijABCDEFGHIJ0123456789",
  "source": "env"
}
~~~~

Rejected: unknown-source

~~~~
{
  "token": "ghp_0123456789abcdefghijABCDEFGHIJ0123456789",
  "source": "vault"
}
~~~~

## Validate

~~~~
const contracts = require('openvibe-contracts');
contracts.validate('network.github-token-result@1', value);   // { valid, errors: [{ path, message }] }
~~~~
