Using a custom personal access token

[original thread by LittleKitacho]

Since I want to edit some GitHub Actions files, I need an additional scope for Gitpod. How would I be able to set my own personal access token, or is there a way to do this with GitHub’s permissions manager?


Oh, do they have a special scope now for that? It used to be not supported at all. If it is about push you can try with this:


Yeah, they created a new workflow permission scope. I found it somewhere, I’ll send you the link later.


Is there an environment variable that I can change to use the access token as the password?

No, the token is not stored as an ENV variable, that would be bad when you share your workspace.


Is there any way to use that as the Git password, without an environment variable?

I’m running into the same problem. I’m trying to update a workflow and cannot push from gitpod.

! [remote rejected] master -> master (refusing to allow an OAuth App to create or update workflow .github/workflows/main.ymlwithoutworkflow scope)

Can we either get that scope added as a default scope or allow us to edit the scopes used when connecting to Github?

We have added the scope. You need to open
and check update workflows and update.


Thanks a lot, @svenefftinge, this fixed the problem for me, too. It would be great if you could find a way to tell users about this missing permissions in a more convenient way than forcing everyone to google and find this thread … :slight_smile: