Skip to content

Add trusted_domains variable to code-server module for link protection #1706

Add trusted_domains variable to code-server module for link protection

Add trusted_domains variable to code-server module for link protection #1706

Re-run triggered October 14, 2025 17:29
Status Failure
Total duration 8m 4s
Artifacts

ci.yaml

on: pull_request
Check for typos and unformatted code
31s
Check for typos and unformatted code
Validate Terraform output
7m 59s
Validate Terraform output
Validate README files
23s
Validate README files
Fit to window
Zoom out
Zoom in

Annotations

6 errors
Validate Terraform output
Process completed with exit code 1.
error: expect(received).toThrow(expected): registry/coder/modules/code-server/main.test.ts#L34
Expected substring: "Offline mode does not allow extensions to be installed" var.use_cached_extensions is a bool\n\nCall to function \"templatefile\" failed: ./run.sh:21,34-35: Invalid character;\nThis character is not used within the language., and 1 other diagnostic(s).\n" at <anonymous> (/home/runner/work/registry/registry/registry/coder/modules/code-server/main.test.ts:34:15)
error: expect(received).toThrow(expected): registry/coder/modules/code-server/main.test.ts#L23
Expected substring: "Offline and Use Cached can not be used together" var.use_cached_extensions is a bool\n\nCall to function \"templatefile\" failed: ./run.sh:21,34-35: Invalid character;\nThis character is not used within the language., and 1 other diagnostic(s).\n" at <anonymous> (/home/runner/work/registry/registry/registry/coder/modules/code-server/main.test.ts:23:15)
error:: test/test.ts#L265
on main.tf line 161, in resource "coder_script" "code-server": 161: script = templatefile("${path.module}/run.sh", { 162: VERSION : var.install_version, 163: EXTENSIONS : join(",", var.extensions), 164: APP_NAME : var.display_name, 165: PORT : var.port, 166: LOG_PATH : var.log_path, 167: INSTALL_PREFIX : var.install_prefix, 168: // This is necessary otherwise the quotes are stripped! 169: SETTINGS : replace(jsonencode(var.settings), "\"", "\\\""), 170: MACHINE_SETTINGS : replace(jsonencode(var.machine-settings), "\"", "\\\""), 171: OFFLINE : var.offline, 172: USE_CACHED : var.use_cached, 173: USE_CACHED_EXTENSIONS : var.use_cached_extensions, 174: EXTENSIONS_DIR : var.extensions_dir, 175: FOLDER : var.folder, 176: AUTO_INSTALL_EXTENSIONS : var.auto_install_extensions, 177: TRUSTED_DOMAINS : join(",", var.trusted_domains), 178: }) while calling templatefile(path, vars) path.module is "." var.auto_install_extensions is a bool var.display_name is a string var.extensions is a list of string var.extensions_dir is a string var.folder is a string var.install_prefix is a string var.install_version is a string var.log_path is a string var.offline is a bool var.port is a number var.trusted_domains is a list of string var.use_cached is a bool var.use_cached_extensions is a bool Call to function "templatefile" failed: ./run.sh:21,34-35: Invalid character; This character is not used within the language., and 1 other diagnostic(s). at <anonymous> (/home/runner/work/registry/registry/test/test.ts:265:15) at async <anonymous> (/home/runner/work/registry/registry/test/test.ts:182:11)
error: expect(received).toBe(expected): registry/coder/modules/goose/main.test.ts#L137
Expected: 0 Received: 127 at <anonymous> (/home/runner/work/registry/registry/registry/coder/modules/goose/main.test.ts:137:27)
error: expect(received).toBe(expected): registry/coder/modules/goose/main.test.ts#L113
Expected: 0 Received: 127 at <anonymous> (/home/runner/work/registry/registry/registry/coder/modules/goose/main.test.ts:113:27)