Skip to content

feat: support sandbox configuration via shared workflow imports#4299

Closed
Copilot wants to merge 2 commits intomossaka/srtfrom
copilot/sub-pr-4295
Closed

feat: support sandbox configuration via shared workflow imports#4299
Copilot wants to merge 2 commits intomossaka/srtfrom
copilot/sub-pr-4295

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Nov 18, 2025

Addresses feedback to make sandbox configuration importable rather than requiring inline declaration in each workflow.

Changes

  • Schema: Added sandbox field to included_file_schema.json with full configuration options (string enum or object with type/config)

  • Shared workflow: Created .github/workflows/shared/sandbox-runtime.md containing sandbox: sandbox-runtime configuration

  • Parser: Added sandbox extraction/merging logic to ProcessImportsFromFrontmatterWithManifest() with new MergedSandbox field

  • Compiler: Merge imported sandbox when top-level workflow doesn't define one (uses same pattern as network/permissions merging)

  • Migration: Updated smoke-srt.md from inline sandbox: sandbox-runtime to imports: [shared/sandbox-runtime.md]

Example

Before:

---
engine: copilot
sandbox: sandbox-runtime
---

After:

---
engine: copilot
imports:
  - shared/sandbox-runtime.md
---

The shared workflow approach enables reusable sandbox configurations across multiple workflows while maintaining backward compatibility with inline declarations.


💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

- Add `sandbox` field support to included_file_schema.json
- Create shared/sandbox-runtime.md for sandbox-runtime configuration
- Update smoke-srt.md to import sandbox config instead of using builtin field
- Add sandbox extraction and merging in import processing
- Update parser to extract MergedSandbox from imports
- Update compiler to merge sandbox from imported files
- Fix firewall test to pass nil sandboxConfig parameter

Addresses feedback: sandbox should not be builtin, rather imported as shared workflow

Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Copilot AI changed the title [WIP] Fix feedback on copilot sandbox implementation feat: support sandbox configuration via shared workflow imports Nov 18, 2025
Copilot AI requested a review from pelikhan November 18, 2025 20:00
@Mossaka Mossaka marked this pull request as ready for review November 18, 2025 21:05
@pelikhan pelikhan closed this Nov 19, 2025
@pelikhan pelikhan deleted the copilot/sub-pr-4295 branch November 19, 2025 00:34
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.

2 participants