Repository navigation
fix: run cli correctly in compiled bun hosts - #301
Conversation
|
Thanks for the fix! Setting One concern before merging: Bun auto-loads I haven't reproduced this myself (no Bun on my machine), so please correct me if Bun skips Minor:
I'll approve the CI run so the existing suite runs on this branch. |
|
Thanks for catching the env-file issue. Confirmed that Bun auto-loads project Updated the runner to pass Added SHA-pinned |
pchuri
left a comment
There was a problem hiding this comment.
Thanks a lot for this fix, @erikh3! Really appreciate the careful work — especially closing the .env injection path for Bun children, which I hadn't considered.
Review notes:
- The change is minimal and well-scoped:
BUN_BE_BUN=1and--no-env-fileapply only when the host runs on Bun, so Node behavior is untouched. - The regression test covers both plain and compiled Bun hosts and asserts that untrusted
.env/.env.localvalues never reach the child. Nice. - Pinning
oven-sh/setup-bunby commit SHA and limiting it to the 24.x matrix keeps CI lean.
No blocking issues from my side. I'll approve the pending CI run and merge once it's green.
## [2.31.4](v2.31.3...v2.31.4) (2026-11-30) ### Bug Fixes * run cli correctly in compiled bun hosts ([#301](#301)) ([a56d78d](a56d78d))
|
🎉 This PR is included in version 2.31.4 🎉 The release is available on: Your semantic-release bot 📦🚀 |
Summary
Run CLI subprocesses correctly from compiled Bun hosts with
BUN_BE_BUN=1. Pass--no-env-fileto Bun children so untrusted project.envfiles cannot bypass the filtered environment. Node behavior remains unchanged.Type of Change
Testing
.envand.env.localinjection while preserving trusted settings.Checklist
Local verification exercised job commands, not the GitHub Actions runner itself.