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?

3 Likes

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: https://help.github.com/en/github/authenticating-to-github/creating-a-personal-access-token-for-the-command-line

[LittleKitacho]

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

[LittleKitacho]

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.

[LittleKitacho]

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
https://gitpod.io/access-control/
and check update workflows and update.

2 Likes

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: