GIT ASKPASS not being set in workspaces
Hi everyone, I've set up a Github App and it shows my user as authenticated when creating a workspace whose template is pretty close to the the default Docker Devcontainers template, but when I try any git operation it still asks me to log into Github again. I am using HTTPS requests, but it seems like the GIT_ASKPASS is not being set by coder, as this is the GIT ASKPASS env variable:
/tmp/code-server/lib/code-server-4.102.3/lib/vscode/extensions/git/dist/askpass.sh
Solution:Jump to solution
Sorry nevermind, I was able to figure it out. I was installing GitHub Actions on code-server which was overriding the GIT_ASKPASS variable. It works as expected after I removed that extension!
6 Replies
<#1400729969084076085>
Category
Help needed
Product
Coder (v2)
Platform
Linux
Logs
Please post any relevant logs/error messages.
Hey @Beast1396 I went through something like this a couple of days ago and for me the solution was adding a settings.json in the template dir with
and then upload this settings.json inside the docker container terraform resource to "/home/<our_custom_home>/.vscode-server/data/Machine/settings.json" to work in VS Code Desktop.
Maybe it also works for you, I used the default Docker template instead of the devcontainer one though.
edit: I used azuredevops as external auth too, so I don't know if makes a difference
Thanks, I'll give that a try for VS code desktop. I'm facing this issue on code-server as well though, which I didn't think used the integrated askpass. Per Coder's documentation's too, it seems like Coder should be automatically setting up the askpass to something like the following but don't think that's actually happening in my deployment.
Solution
Sorry nevermind, I was able to figure it out. I was installing GitHub Actions on code-server which was overriding the GIT_ASKPASS variable. It works as expected after I removed that extension!
@Phorcys closed the thread.