Working with Private Repos and PATs #145122
Unanswered
PatrickCaneloDigital
asked this question in
Repositories
Replies: 1 comment
-
Welcome to the GitHub Community, @PatrickCaneloDigital, we're happy you're here! You are more likely to get a useful response if you are posting your question in the applicable category and are explicit about what your project entails--giving a few more details might help someone give you a nudge in the right direction. I've gone ahead and moved it for you. Good luck! |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Select Topic Area
Question
Body
Has anyone successfully worked with Private Repos (https://) and access keys?
I know, ideal would be the ssh approach and locally I use that too, but on one of my hosting I cannot add ssh certificates, so the best apparent option would be PAT
But PATs on private repos seems to work very badly as URLs take a username/password approach and thus get later blocked.
Yesterday I was able to somehow clone a repo with a PAT, but today as I tried a pull request I was asked for a password.
So the PAT (even if expiration is in one year) somehow was valid only for a one time access.
So I deleted the repo (clone seemed to work, I tried to reclone it)
Any combination using only the token gives the same error, at latest in the second access:
My actual conclusion is that PAT in that form is simply not useable for private repos...
The ssh method would be if I'd be able to use ssh-add on my hosting, but I'm not...
Beta Was this translation helpful? Give feedback.
All reactions