GitClone tasks and GitHub tokens [message #1850579] |
Tue, 08 March 2022 16:36  |
Eclipse User |
|
|
|
I'm creating a setup model that clones some github repositories but I'm having trouble dealing with GitHub's personal access tokens (PAT).
My first approach was to use the defaults when I create a GitClone with an InducedChoices element that specifies inherit -> github.remoteURIs and target -> remoteURI, but when I run it it fails cloning it.
So my second approach was to remove the InducedChoices and replace the RemoteURI of the GitClone task with
https://${github.user.id|username}:${github.token}@github.com/myorg/myrepo.git
where I added a variable ${github.token} of type PASSWORD.
But when I run this it also fails, and in particular I see that it seems to be replacing the ${github.token} variable with the encrypted password.
So, how can you create a GitClone task that works with PATs?
I haven't found any documentation about it.
Thanks.
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.04559 seconds