Repository navigation
Signing in and security
In order, the first that exists wins:
-
PULLPEN_GITHUB_TOKENorPULLPEN_GITLAB_TOKEN, thenGITHUB_TOKENorGITLAB_TOKEN - a token you gave
pullpen setup - your
ghorglablogin: pullpen runsgh auth tokenand uses what it prints -
token_cmdin the config
pullpen always talks to the forge's API itself; the CLI only lends the token.
~/.config/pullpen/credentials.toml, readable only by you. It is written to a
new owner-only file and renamed into place, so it never exists with wider
permissions. If anything makes it readable by others, pullpen refuses to use
it and prints the chmod that fixes it. It is kept apart from config.toml
so that file can be shared.
On Windows it is %APPDATA%\pullpen\credentials.toml. Windows has no file
mode to set, so the protection there is the folder's own permissions, which
admit only your account; pullpen does not check them (ADR-016).
Setup reads a token with echo off. pullpen never writes one to the log, the cache, the history or the screen, and a test holds it to that.
The gh or glab login is the simplest, and works where pasted tokens do
not: some organisations refuse classic GitHub tokens (ghp_…), and their PRs
then do not show. pullpen says so on the status line when it happens. A
fine-grained token needs read and write on Pull requests and Contents for the
repos you watch.
Privately, through the advisory form, not the issue tracker.