githuboauth-2.0github-apigithub-oauth

Can I use a Github OAuth app's generated access token for pushing code to a repository of the user?


I know there is a hacky way of modifying content of user's repo through the GitHub API which just needs an access token and workflow scope. What I would like to do is use this access token in place of the Personal Access Token and push code from CLI.


Solution

  • Ok. It works by itself. Access token generated using Oauth apps can be used for pushing code to repo(provided the scope for the token includes repo).