()
| 111 | const REPO = repoNameWithOwner(); |
| 112 | const [OWNER, NAME] = REPO.split("/"); |
| 113 | function getToken() { |
| 114 | const env = process.env.GITHUB_TOKEN || process.env.GH_TOKEN || ""; |
| 115 | if (env) return env; |
| 116 | try { return execFileSync("gh", ["auth", "token"], { encoding: "utf8" }).trim(); } catch { return ""; } |
| 117 | } |
| 118 | const TOKEN = getToken(); |
| 119 | if (!TOKEN) console.error("Warning: no GITHUB_TOKEN/GH_TOKEN (or gh auth token). Resolution will be limited."); |
| 120 |
no outgoing calls
no test coverage detected