jdx / mise

dev tools, env vars, task runner
https://mise.jdx.dev
MIT License
10.19k stars 293 forks source link

`mise doctor` output includes MISE_GITHUB_TOKEN #3133

Closed powerman closed 7 hours ago

powerman commented 8 hours ago

Describe the bug Including tokens in mise doctor output leads to posting tokens in GitHub issues (and, thanks God, auto-revoking it by GitHub!).

To Reproduce See https://github.com/jdx/mise/issues/3132

Expected behavior mise doctor must not include any tokens in output.

mise doctor output

N/A
powerman commented 8 hours ago

Also it may worth noting there is no MISE_GITHUB_TOKEN (shown by mise doctor) in my env vars, the value of this output is actually comes from GITHUB_API_TOKEN env var.

But it looks like mise exec -- add env vars MISE_GITHUB_TOKEN and GITHUB_TOKEN set to the value of GITHUB_API_TOKEN env var.