code-server GitHub token not authenticating the GitHub Authentication extension

I'm trying to setup code server to automatically authenticate the GitHub Authentication extension via the GITHUB_TOKEN environment variable. Based on this e2e test, it looks like I just have to set GITHUB_TOKEN and it should work. Instead, the extension tries to initiate an oauth device flow for a new token, indicating that it isn't "happy" with the token provided via the env. What am I doing wrong here? I have confirmed that the code-server process does in fact have the token set, and that the token is valid:
coder@coder-efe1b49b-27e3-4487-b90d-8b2783e773b0-6dcf9bc97c-jgmxj:~/repo$ ps 458
PID TTY STAT TIME COMMAND
458 ? Sl 0:00 /usr/lib/code-server/lib/node /usr/lib/code-server --auth none --port 13337
coder@coder-efe1b49b-27e3-4487-b90d-8b2783e773b0-6dcf9bc97c-jgmxj:~/repo$ grep "GITHUB_TOKEN=" "/proc/458/environ"
grep: /proc/458/environ: binary file matches
coder@coder-efe1b49b-27e3-4487-b90d-8b2783e773b0-6dcf9bc97c-jgmxj:~/repo$ gh auth status | head -c 48
github.com
✓ Logged in to github.com account
coder@coder-efe1b49b-27e3-4487-b90d-8b2783e773b0-6dcf9bc97c-jgmxj:~/repo$ ps 458
PID TTY STAT TIME COMMAND
458 ? Sl 0:00 /usr/lib/code-server/lib/node /usr/lib/code-server --auth none --port 13337
coder@coder-efe1b49b-27e3-4487-b90d-8b2783e773b0-6dcf9bc97c-jgmxj:~/repo$ grep "GITHUB_TOKEN=" "/proc/458/environ"
grep: /proc/458/environ: binary file matches
coder@coder-efe1b49b-27e3-4487-b90d-8b2783e773b0-6dcf9bc97c-jgmxj:~/repo$ gh auth status | head -c 48
github.com
✓ Logged in to github.com account
3 Replies
Codercord
Codercord6d ago
Codercord
Codercord6d ago
<#1441410146491174975>
Category
Help needed
Product
code-server
Platform
Linux
Logs
Please post any relevant logs/error messages.
mydudeiamhere
mydudeiamhereOP6d ago
Please post any relevant logs/error messages.
Available in post

Did you find this page helpful?