Skip to content

Git internals don't work remote oauth url #381

@mrbrownt

Description

@mrbrownt

I am using an oauth remote url in the format https://oauth2:${SERVICE_ACCOUNT_GITLAB_TOKEN}@gitlab.com/${CI_PROJECT_PATH}.git

When running lab mr create ${BRANCH} master I'm getting the following error.

mr_create.go:83: the key `remote.https://oauth2:[MASKED]@gitlab.com/some/repo.git.url` is not found

I know this upstream remote url does exist because it's was used to create a branch prior to this command.
I'm running this all in gitlab CI.

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions