MCPcopy Index your code
hub / github.com/github/spec-kit / _github_entry

Function _github_entry

tests/test_authentication.py:38–46  ·  view source on GitHub ↗

Build a standard GitHub config entry.

(token_env: str = "GH_TOKEN", token: str | None = None)

Source from the content-addressed store, hash-verified

36
37
38def _github_entry(token_env: str = "GH_TOKEN", token: str | None = None) -> AuthConfigEntry:
39 """Build a standard GitHub config entry."""
40 return AuthConfigEntry(
41 hosts=("github.com", "api.github.com", "raw.githubusercontent.com", "codeload.github.com"),
42 provider="github",
43 auth="bearer",
44 token=token,
45 token_env=token_env if token is None else None,
46 )
47
48
49def _ado_basic_entry(token_env: str = "AZURE_DEVOPS_PAT") -> AuthConfigEntry:

Calls 1

AuthConfigEntryClass · 0.90

Tested by

no test coverage detected