Skip to content

fix: doctor command token handling and GHE support #198

@erishforG

Description

@erishforG

Problem

parsec doctor에 3가지 문제:

  1. 잘못된 토큰 환경변수: JIRA_TOKEN 사용 (canonical은 PARSEC_JIRA_TOKEN / JIRA_PAT)
    • doctor.rs:200
  2. 토큰 노출: curl -u 옵션으로 email:token이 ps 출력에 노출
    • doctor.rs:223
  3. GHE 미지원: GitHub API 체크가 api.github.com 하드코딩
    • doctor.rs:271

Solution

  • crate::env::jira_token(config_token) 사용으로 통일
  • curl 대신 기존 reqwest 클라이언트 활용 (토큰 노출 방지)
  • config에서 GHE host 읽어서 API endpoint 동적 결정

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions