Skip to content

Commit 0e73513

Browse files
committed
feat: pass Claude OAuth token through to dind template
Adds claude_code_oauth_token variable to coder/main.tf and passes it from GitHub secrets via the push-template workflow.
1 parent 87145eb commit 0e73513

File tree

2 files changed

+11
-3
lines changed

2 files changed

+11
-3
lines changed

.github/workflows/push-template.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,5 @@ jobs:
1919
CODER_URL: https://noel.codespace.sh
2020
CODER_SESSION_TOKEN: ${{ secrets.CODER_TOKEN }}
2121
run: |
22-
coder templates push example --directory coder --yes
22+
coder templates push example --directory coder --yes \
23+
--variable claude_code_oauth_token="${{ secrets.CLAUDE_CODE_OAUTH_TOKEN }}"

coder/main.tf

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,18 @@
11
# Example App - TanStack Start demo for codespace.sh
22
# Consumes the dind template module
33

4+
variable "claude_code_oauth_token" {
5+
type = string
6+
sensitive = true
7+
default = ""
8+
}
9+
410
module "workspace" {
511
source = "git::https://github.com/codespacesh/templates.git//dind/module"
612

7-
project_name = "example"
8-
git_repos = { "example" = "https://github.com/codespacesh/example" }
13+
project_name = "example"
14+
git_repos = { "example" = "https://github.com/codespacesh/example" }
15+
claude_code_oauth_token = var.claude_code_oauth_token
916

1017
services = {
1118
app = { port = 5173, public = true, healthcheck = true, healthcheck_path = "/healthz" }

0 commit comments

Comments
 (0)