-
Notifications
You must be signed in to change notification settings - Fork 36
Replace envsubst with JavaScript-based substitution to prevent template injection #5773
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Co-authored-by: mnkiefer <8320933+mnkiefer@users.noreply.github.com>
Co-authored-by: mnkiefer <8320933+mnkiefer@users.noreply.github.com>
Co-authored-by: mnkiefer <8320933+mnkiefer@users.noreply.github.com>
pelikhan
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@copilot use JavaScript step to apply expansion, not repeated sed calls
Co-authored-by: mnkiefer <8320933+mnkiefer@users.noreply.github.com>
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
|
@copilot merge main, recompile, format, lint |
…injection-vulnerability # Conflicts: # .github/workflows/smoke-copilot-playwright.lock.yml
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Completed all tasks:
Commit: 1afa626 |
|
💫 TO BE CONTINUED... Smoke Claude failed! Our hero faces unexpected challenges... |
…injection-vulnerability # Conflicts: # .github/workflows/spec-kit-executor.lock.yml # pkg/workflow/js.go
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
|
💥 WHOOSH! Smoke Claude springs into action on this pull request! [Panel 1 begins...] |
|
🤖 SYSTEM_INIT: Smoke Copilot No Firewall ACTIVATED. PROCESSING pull request. ALL SUBSYSTEMS ONLINE. |
|
📰 BREAKING: Smoke Copilot Playwright is now investigating this pull request. Sources say the story is developing... |
|
📰 BREAKING: Smoke Copilot is now investigating this pull request. Sources say the story is developing... |
|
🔮 The ancient spirits stir... Smoke Codex awakens to divine this pull request... |
|
🎉 Yo ho ho! Changeset Generator found the treasure and completed successfully! ⚓💰 |
Smoke Test: Copilot Engine Validation - Run 20009718258Last 2 Merged PRs:
Test Results:
Status: PASS (5/6 - expected failures confirmed correct behavior)
|
Smoke Test Results - Run 20009718274Last 2 Merged PRs:
Test Results: Status: PASS
|
Smoke Test Results - Run 20009718248Last 2 merged PRs:
Test Results:
Overall Status: PASS (5/6 tests successful)
|
Copilot Engine Smoke Test ResultsLast 2 Merged PRs:
Test Results:
Overall Status: FAIL 📰🔥📋 https://github.com/githubnext/gh-aw/actions/runs/20009718295 fer issue #5773 🗺️ |
Smoke Test Results (Run 20009718520)✅ Playwright MCP: Page title contains "GitHub" Overall Status: PARTIAL PASS Note: gh tool requires GH_TOKEN environment variable to be set in the workflow.
|
|
GitHub MCP merged PRs: #5781 "Fix linting errors and bundling failures in JavaScript workflow scripts"; #5780 "Add comprehensive test for JavaScript comment removal on all .cjs files with syntax validation"
|
Merged main branch
✅ Successfully merged main into PR branch (commit ad120b4)
spec-kit-executor.lock.yml- took our version, will recompilepkg/workflow/js.go- integrated newexpirationHelpersScriptfrom main✅ Recompiled all workflows
Summary
Original prompt
💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.
Changeset
pkg/workflow/js/substitute_placeholders.cjsandpkg/workflow/compiler_yaml.go, recompiled workflows and validated generated JS syntax.Smoke Test Summary - Run 20009235856
Timestamp: 2025-12-07T19:32:52Z
Status: FAIL
Summary: 5/6 tests passed - gh safe-input tool requires GH_TOKEN authentication
Changeset
envsubstwith JavaScript-based placeholder substitution; fixed JS export/invocation bug; recompiled workflows.Smoke Test Summary - 2025-12-07T20:15:49Z
Status: PASS
Run ID: 20009718248
Summary: 5/6 tests passed - GitHub MCP, file I/O, Playwright, and cache memory verified successfully.