MCPcopy
hub / github.com/fastify/fastify / getGitHubToken

Function getGitHubToken

scripts/validate-ecosystem-links.js:23–25  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

21const GITHUB_REPO_REGEX = /^[a-z\d._-]+$/i
22
23function getGitHubToken () {
24 return process.env.GITHUB_TOKEN
25}
26
27function isValidGitHubReference (owner, repo) {
28 return GITHUB_OWNER_REGEX.test(owner) && GITHUB_REPO_REGEX.test(repo)

Callers 1

checkGitHubRepoFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected