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.
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
).