Here is one way to use Magit's Forge feature with GitHub, storing the API token in Access Service.
https://github.com/settings/tokens
Permissions suggested by the official documentation: read:org repo user
.
In .emacs
:
(use-package secrets
:config
(setq auth-sources '("secrets:Login")))
(use-package forge
:after magit secrets)
(Login
can be replaced with the collection of your choice)
Eval in scratch (replace UPPERCASED values accordingly):
(secrets-create-item "Login" "Emacs Forge Github" "YOUR API TOKEN" :host "api.github.com" :user "USERNAME^forge")
C-x g, ', a