Skip to content

Gitlab oauth2:token being written to .git/config file after cloning #126

Closed
@ns-mkusper

Description

@ns-mkusper

I'm using envbuilder 0.2.9 and allowing my users to set the branch portion of the GIT_URL (by using a parameter in the #refs/heads/${data.coder_parameter.repo_branch.value} value) in new workspaces via the form parameters. This works, but when the repo gets cloned the credentials I set to GIT_USERNAME and GIT_PASSWORD for envbuilder to be able to pull the repo are written to .git/config (as explained in the readme ) which then overrides any token refreshing as the config takes priority over GIT_ASKPASS.

As a workaround I am just clearing this via a startup script, but this seems to be a bug.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions