发布

  • feat(cli): add optional GitHub token support for higher API rate limits (#294)

    frostbyte_neo 发布于 2026-06-25 01:39:27 +00:00

    • fix: V-001 security vulnerability

    Automated security fix generated by Orbis Security AI

    • feat(cli): add optional GitHub token support with proper UX and docs
    • Rename env var from GITHUB_TOKEN to UI_PRO_MAX_GITHUB_TOKEN (primary),
      with GITHUB_TOKEN as fallback — avoids silently attaching CI workflow
      credentials that GitHub Actions injects automatically
    • Add whitespace trim guard to prevent malformed Authorization headers
    • Add getGitHubTokenGuidance() helper exported from github.ts so rate-limit
      errors and spinner warnings tell users exactly how to fix the problem
    • Thread optional token param through fetchReleases, getLatestRelease,
      downloadRelease signatures
    • Add --token flag to init, versions, update commands (Commander.js wiring)
    • Update rate-limit catch in tryGitHubInstall to show token guidance
    • Document token options (flag, env var, fallback) in cli/README.md with
      CI warning about GITHUB_TOKEN scope

    Supersedes the narrower env-only approach in PR #294 and incorporates the
    safeguards requested during review of closed PR #186.

    Co-Authored-By: Claude Sonnet 4.6 noreply@anthropic.com


    Co-authored-by: Claude Sonnet 4.6 noreply@anthropic.com

    下载附件