Coder Social home page Coder Social logo

Comments (5)

jdowner avatar jdowner commented on May 26, 2024 1

I created a new token for testing with the same permissions you had. I created a new VM for testing and installed gist. Like you, I was able to list the gists, but when I tried to edit a gist (which involves cloning the repo), I got the same error as you.

I created a new ssh key for the VM and added it to my github account. After that I was able to edit the gists.

The confusing thing here is that you can list all of your gists, but you cannot edit them. This seems inconsistent. The reason this occurs is that listing the gists goes through the github API and, therefore, access is determined by the token. But editing/cloning the gists is done via git, so it has nothing to do with the access token.

Originally, access tokens did not expose the different scopes that are now available. One of the scopes that is now available is to read the users public keys. This may provide a mechanism for detecting this kind of problem from within gist so that the user can, at least, be provided a more helpful message.

from gist.

jdowner avatar jdowner commented on May 26, 2024

Since the error message states that the public key is denied, I suspect this is an issue of key management rather than with gist. Can you try

git clone [email protected]:d9k/c17592d5ef054e634c7dbe48be0c186f

see if that works.

from gist.

d9k avatar d9k commented on May 26, 2024

@jdowner, thanks!
I created ssh key, added it to my github account and now I can edit gists with your utility.

but manual git clone command you posted earlier doesn't work:

d9k@d9k-lap ~/temp % ssh-add ~/.ssh/d9k-github-lap             
Enter passphrase for /home/d9k/.ssh/d9k-github-lap: 
Identity added: /home/d9k/.ssh/d9k-github-lap (/home/d9k/.ssh/d9k-github-lap)

d9k@d9k-lap ~/temp % git clone [email protected]:d9k/c17592d5ef054e634c7dbe48be0c186f
Cloning into 'c17592d5ef054e634c7dbe48be0c186f'...
ERROR: Repository not found.
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

What am I doing wrong?

from gist.

jdowner avatar jdowner commented on May 26, 2024

Apologies! That is my mistake. If you use,

git clone [email protected]:/c17592d5ef054e634c7dbe48be0c186f

it will work.

from gist.

d9k avatar d9k commented on May 26, 2024

@jdowner, cool, this works! Many thanks!

from gist.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.