Skip to content

fix(core): escape drop-schema SQL for shell#56

Merged
arhebs merged 1 commit intomainfrom
fix/psql-drop-shell-escaping
May 2, 2026
Merged

fix(core): escape drop-schema SQL for shell#56
arhebs merged 1 commit intomainfrom
fix/psql-drop-shell-escaping

Conversation

@arhebs
Copy link
Copy Markdown
Collaborator

@arhebs arhebs commented May 2, 2026

Summary\n- Escape shell-sensitive SQL characters in built-in PostgreSQL drop-schema jobs\n- Add a contract assertion that the dollar-quoted dependency guard survives /bin/sh -c\n- Add a patch changeset for core/cli release\n\n## Verification\n- pnpm exec biome check packages/core/src/operations/db-hook.ts tests/overlay-lifecycle-contract.test.ts .changeset/fuzzy-drops-run.md\n- pnpm build\n- pnpm test\n\n## Context\nReal Worken preview teardown on the staging cluster produced DO $ because /bin/sh expanded `` inside the generated psql -c command. This patch preserves `DO \$` through the shell.

@arhebs arhebs merged commit 2a27a35 into main May 2, 2026
1 check passed
@arhebs arhebs deleted the fix/psql-drop-shell-escaping branch May 2, 2026 04:46
@github-actions github-actions Bot mentioned this pull request May 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant