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:
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!
Jump to solution
6 Replies
Codercord
Codercord3mo ago
Codercord
Codercord3mo ago
<#1400729969084076085>
Category
Help needed
Product
Coder (v2)
Platform
Linux
Logs
Please post any relevant logs/error messages.
GR8B8
GR8B83mo ago
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
{
"git.useIntegratedAskPass": false
}
{
"git.useIntegratedAskPass": false
}
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
Beast1396
Beast1396OP3mo ago
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
/tmp/coder.<random-string>/coder
/tmp/coder.<random-string>/coder
but don't think that's actually happening in my deployment.
Solution
Beast1396
Beast13963mo ago
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!
Codercord
Codercord2mo ago
@Phorcys closed the thread.

Did you find this page helpful?