Aquesta és una versió anterior. La versió actual és la 0.4.2. ghtkn 0.4.2 · Data de publicació:
Fitxers d’instal·lació 0.2.7
| Arquitectura | Tipus | Àmbit | Mida del fitxer | Baixa | SHA256 |
|---|---|---|---|---|---|
| 64 bits | ZIP → Portable | — | — | github.com | VirusTotal |
| ARM64 | ZIP → Portable | — | — | github.com | VirusTotal |
L’enllaç i l’SHA256 provenen del manifest comunitari del Gestor de paquets del Windows. Convé comparar el hash del fitxer baixat abans d’executar-lo.
Notes de la versió
Features
#462 Skip the GitHub account picker by default
#460 Add ghtkn revoke command
Skip the GitHub account picker by default
#462
As of this release, the GitHub account picker is skipped by default.
https://github.com/login/device
You can put a one-time code quickly.
https://github.com/login/device?skip_account_picker=true
Note that this query parameter is undocumented and may not be supported in the future.
Most users don't need to choose a different GitHub account. However, if you do want to choose another account, set skip_account_picker: false in the configuration file.
~/.config/ghtkn/ghtkn.yaml
skip_account_picker: false
Add ghtkn revoke command
You can quickly revoke access tokens.
This is useful when access tokens are leaked.
This command supports not only access tokens managed by ghtkn but also any access tokens and refresh tokens supported by GitHub revocation API.
Usage:
ghtkn revoke <app name> # revoke the token stored for an app and delete it from the backend
ghtkn revoke ghu_xxx # revoke a raw token directly (e.g. a leaked one)
ghtkn revoke ghu_a ghu_b foo # revoke multiple tokens and an app's stored token at once
ghtkn revoke # revoke the token stored for GHTKN_APP or the default app
Each argument is classified by its prefix: arguments starting with a GitHub token prefix (ghp_, github_pat_, gho_, ghu_, ghr_) are revoked directly as raw access tokens, and all other arguments are treated as app names whose stored tokens are revoked and removed from the backend.
When no argument is given, it falls back to GHTKN_APP or the default app; when only raw tokens are given, the fallback is not used, so revoking a raw token never touches an unrelated app's stored token.
Documentation
#445 #460 Update how to revoke access tokens
#450 Add a tip for automatically copying a one-time code to the clipboard
#452 Add a WSL tip for automatically copying a one-time code to the clipboard @toyamagu-2021https://github.com/suzuki-shunsuke/ghtkn/releases/tag/v0.2.7