You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Sep 27, 2026. It is now read-only.
Repository navigation
This repository was archived by the owner on Sep 27, 2026. It is now read-only.
attest: fall back to gh auth token when no GITHUB_TOKEN is set #8
greentree attest exits 15 with "no GREENTREE_GITHUB_TOKEN or GITHUB_TOKEN in the environment" in an environment where gh is fully authenticated — the very next command, gh pr create, succeeded. Since attest already assumes a GitHub remote, it could try gh auth token (the documented way to lend gh's credential to other tools) before giving up, or say in the error that GITHUB_TOKEN=$(gh auth token) greentree attest works. Hit on Tako-Research/reachpad-infra, 2026-08-13, commit a15c382.
Duplicate of #4, fixed in #9 (merged to main today): token resolution is now GREENTREE_GITHUB_TOKEN → GITHUB_TOKEN → gh auth token --hostname github.com (5s timeout, source logged, never the value), and the exit-15 error enumerates all three sources. Reinstall from main (cargo install --path .) to pick it up — the GITHUB_TOKEN=$(gh auth token) workaround is no longer needed.
Activity
LopezAdan commentedon Aug 13, 2026
Duplicate of #4, fixed in #9 (merged to main today): token resolution is now GREENTREE_GITHUB_TOKEN → GITHUB_TOKEN →
gh auth token --hostname github.com(5s timeout, source logged, never the value), and the exit-15 error enumerates all three sources. Reinstall from main (cargo install --path .) to pick it up — theGITHUB_TOKEN=$(gh auth token)workaround is no longer needed.