Skip to content

Commit 9a6e702

Browse files
MacAttakclaude
andcommitted
fix(scaffold): quote token_env with yamlEscape; advance workflow to tui
token_env was missed in the PR #10 review-fix pass. Applies the same double-quote + yamlEscape treatment as name/description to close the remaining YAML injection vector in the token auth block. Also advances Specwright workflow state: scaffold shipped, tui building. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 07039e3 commit 9a6e702

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

.specwright/state/workflow.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"currentWork": {
44
"id": "toolwright-completions",
55
"description": "Implement remaining design vision: init scaffolding, TUI wizard, AI manifest generation, infrastructure wiring",
6-
"status": "shipped",
6+
"status": "building",
77
"workDir": ".specwright/work/toolwright-completions/units/tui",
88
"unitId": "tui",
99
"tasksTotal": null,
@@ -19,5 +19,5 @@
1919
{ "id": "wiring", "description": "JSON Schema, exit codes, debug logging, wire.go production wiring, cleanup", "status": "planned", "order": 4, "workDir": ".specwright/work/toolwright-completions/units/wiring" }
2020
],
2121
"lock": null,
22-
"lastUpdated": "2026-03-05T12:00:00Z"
22+
"lastUpdated": "2026-03-06T00:00:00Z"
2323
}

internal/scaffold/scaffold_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ tools:
4141
{{- if eq .Auth "token"}}
4242
auth:
4343
type: token
44-
token_env: {{.Name | upper}}_TOKEN
44+
token_env: "{{.Name | upper | yamlEscape}}_TOKEN"
4545
token_flag: --token
4646
{{- else if eq .Auth "oauth2"}}
4747
auth:

templates/init/toolwright.yaml.tmpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ tools:
1414
{{- if eq .Auth "token"}}
1515
auth:
1616
type: token
17-
token_env: {{.Name | upper}}_TOKEN
17+
token_env: "{{.Name | upper | yamlEscape}}_TOKEN"
1818
token_flag: --token
1919
{{- else if eq .Auth "oauth2"}}
2020
auth:

0 commit comments

Comments
 (0)