Skip to content

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

Add trusted_domains variable to code-server module for link protection

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

Re-run triggered September 29, 2025 03:58
Status Failure
Total duration 8m 11s
Artifacts

ci.yaml

on: pull_request
Check for typos and unformatted code
32s
Check for typos and unformatted code
Validate Terraform output
8m 4s
Validate Terraform output
Validate README files
22s
Validate README files
Fit to window
Zoom out
Zoom in

Annotations

8 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: test/test.ts#L28
at <anonymous> (/home/runner/work/registry/registry/test/test.ts:28:15) at async <anonymous> (/home/runner/work/registry/registry/registry/coder/modules/github-upload-public-key/main.test.ts:76:20) at async <anonymous> (/home/runner/work/registry/registry/registry/coder/modules/github-upload-public-key/main.test.ts:44:44)
error: test/test.ts#L28
at <anonymous> (/home/runner/work/registry/registry/test/test.ts:28:15)
error: Cannot call test() inside a test. Call it inside describe() instead.: test/test.ts#L181
at testRequiredVariables (/home/runner/work/registry/registry/test/test.ts:181:3) at <anonymous> (/home/runner/work/registry/registry/registry/coder/modules/jfrog-token/main.test.ts:59:5) at <anonymous> (/home/runner/work/registry/registry/registry/coder/modules/jfrog-token/main.test.ts:58:47)
error: Cannot call test() inside a test. Call it inside describe() instead.: test/test.ts#L181
at testRequiredVariables (/home/runner/work/registry/registry/test/test.ts:181:3) at <anonymous> (/home/runner/work/registry/registry/registry/coder/modules/jfrog-oauth/main.test.ts:28:5) at <anonymous> (/home/runner/work/registry/registry/registry/coder/modules/jfrog-oauth/main.test.ts:27:47)