Skip to content

Commit d2cf407

Browse files
noeljacksonclaude
andcommitted
fix: remove gh_token variable, use Coder External Auth instead
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 33efd33 commit d2cf407

File tree

2 files changed

+1
-17
lines changed

2 files changed

+1
-17
lines changed

.github/workflows/push-template.yaml

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

coder/main.tf

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -10,19 +10,4 @@ module "workspace" {
1010
services = {
1111
app = { port = 5173, public = true, healthcheck = true, healthcheck_path = "/healthz" }
1212
}
13-
14-
extra_env = {
15-
GH_TOKEN = var.gh_token
16-
}
17-
18-
git_setup_hook = <<-EOF
19-
echo "https://oauth2:${var.gh_token}@github.com" >> ~/.git-credentials
20-
EOF
21-
}
22-
23-
variable "gh_token" {
24-
description = "GitHub token for gh CLI and git push"
25-
type = string
26-
sensitive = true
27-
default = ""
2813
}

0 commit comments

Comments
 (0)