Comments (5)
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.
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.
@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.
Apologies! That is my mistake. If you use,
git clone [email protected]:/c17592d5ef054e634c7dbe48be0c186f
it will work.
from gist.
@jdowner, cool, this works! Many thanks!
from gist.
Related Issues (20)
- How to run tests? HOT 2
- used to work well but can't get through after token updated HOT 7
- Switch CI to github actions
- Remove support for python3.{3,4}
- Discontinue use of 'python setup.py test'
- Fixed unit test that fails when run using github actions
- Switch to using github action badges
- ValueError: Unable to load configuration file: readfp() got an unexpected keyword argument 'source' HOT 1
- Use Authorization HTTP header, since access_token is deprecated HOT 4
- List required arguments after options HOT 7
- Should not advise users to install with `sudo` HOT 1
- ValueError: Unable to load configuration file: readfp() got an unexpected keyword argument 'source' HOT 3
- Switch from docopt to argparse
- Filename is not being properly set
- `gist archive` should decrypt encrypted files
- Error with gist create HOT 4
- gist edit fails with ERROR[gist] handle_gist_edit() takes 2 positional arguments but 4 were given HOT 6
- Switch to using poetry
- Use `unittest.mock.auto_spec` in `test_cli_parser.py`
- Add unit tests to cover `client.py`
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gist.