From f591172a94f2a8bffcbdfe3077ba3128f84c7c88 Mon Sep 17 00:00:00 2001 From: 35C4n0r Date: Mon, 20 Jul 2026 13:55:47 +0000 Subject: [PATCH 1/2] fix(registry/coder/modules/github-upload-public-key): use Coder-Session-Token header Replace cookie-based auth with the Coder-Session-Token header for the gitsshkey API request. Signed-off-by: Jay Kumar --- registry/coder/modules/github-upload-public-key/run.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/registry/coder/modules/github-upload-public-key/run.sh b/registry/coder/modules/github-upload-public-key/run.sh index a382a40a4..cc75ec56c 100644 --- a/registry/coder/modules/github-upload-public-key/run.sh +++ b/registry/coder/modules/github-upload-public-key/run.sh @@ -44,7 +44,7 @@ PUBLIC_KEY_RESPONSE=$( curl -L -s \ -w "\n%%{http_code}" \ -H 'accept: application/json' \ - -H "cookie: coder_session_token=$CODER_OWNER_SESSION_TOKEN" \ + -H "Coder-Session-Token: $CODER_OWNER_SESSION_TOKEN" \ "$CODER_ACCESS_URL/api/v2/users/me/gitsshkey" ) PUBLIC_KEY_RESPONSE_STATUS=$(tail -n1 <<< "$PUBLIC_KEY_RESPONSE") From ce8765479c912b4243a13d2ed2279ae8218496a7 Mon Sep 17 00:00:00 2001 From: 35C4n0r Date: Mon, 20 Jul 2026 13:55:47 +0000 Subject: [PATCH 2/2] chore(registry/coder/modules/github-upload-public-key): bump version to 1.0.33 Signed-off-by: Jay Kumar --- registry/coder/modules/github-upload-public-key/README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/registry/coder/modules/github-upload-public-key/README.md b/registry/coder/modules/github-upload-public-key/README.md index fa2c10bd6..dead46b16 100644 --- a/registry/coder/modules/github-upload-public-key/README.md +++ b/registry/coder/modules/github-upload-public-key/README.md @@ -14,7 +14,7 @@ Templates that utilize Github External Auth can automatically ensure that the Co module "github-upload-public-key" { count = data.coder_workspace.me.start_count source = "registry.coder.com/coder/github-upload-public-key/coder" - version = "1.0.32" + version = "1.0.33" agent_id = coder_agent.main.id } ``` @@ -47,7 +47,7 @@ data "coder_external_auth" "github" { module "github-upload-public-key" { count = data.coder_workspace.me.start_count source = "registry.coder.com/coder/github-upload-public-key/coder" - version = "1.0.32" + version = "1.0.33" agent_id = coder_agent.main.id external_auth_id = data.coder_external_auth.github.id }