curl -H "Authorization: token <ENTER_YOUR_PERSONAL_ACCESS_TOKEN>" https://api.github.com/users/ebicoglu -I
Created
April 18, 2022 21:08
-
-
Save ebicoglu/108038573d4a50abef38250aba7bd938 to your computer and use it in GitHub Desktop.
How to check if a GitHub Personal Access Token is valid
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi! I found the Token on the events API (at https://api.github.com/events), I don't know if it's saved by GitHub, but it disappeared after some time
The API logs every event made by people (Pull requests, push, etc.), it saves the data of every event, including the e-mail that Git uses to push code
So while seeing the JSON, I found the token