ks icon indicating copy to clipboard operation
ks copied to clipboard

Adding token for git / github

Open jftuga opened this issue 1 year ago • 0 comments

If you want to add a token so that the git push command works without asking you for a (token) password, then this is the command that needs to be run:

security add-internet-password -a GU_USER -s github.com -w github_pat_xxxxx -U -r 'htps' login.keychain

where GH_USER is your github username and github_pat_xxxxx is the github generate fined-grained token that has the read/write Contents permission.

Is there an easier way to accomplish this? If not, can you please add this functionality into the ks script? It would also be nice to be able to delete internet style passwords as well.

jftuga avatar Jul 16 '24 02:07 jftuga