Skip to content

Can I check the permissions of a token #25259

Answered by henrik242
tombrus asked this question in Actions
Discussion options

You must be logged in to vote

It’s fairly easy to check the permissions of a token using the github API:

$ curl -sS -f -I -H "Authorization: token ghp_yourOwnToken" https://api.github.com | grep -i x-oauth-scopes

x-oauth-scopes: public_repo, repo:status, repo_deployment

Replies: 8 comments 3 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@ben-elttam
Comment options

Answer selected
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@gautamkrishnar
Comment options

Comment options

You must be logged in to vote
1 reply
@vit-zikmund
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment