Feature Request
Summary
The env field is currently not supported in shared import files (.md files used as shared imports). When an env block is placed in a shared import, the compiler silently ignores it with a warning:
⚠ Ignoring unexpected frontmatter fields in shared/common.md: env
Motivation
Shared imports are a great way to centralise common configuration. Currently, network, engine, and jobs fields can be placed in shared imports and are correctly merged into importing workflows. The env field should behave the same way.
A concrete use case: defining a shared TARGET_REPOSITORY variable in a shared import so that all workflows that import it automatically inherit the correct target repository, without having to repeat:
env:
TARGET_REPOSITORY: owner/repo
in every workflow file individually.
Expected Behavior
# shared/target.md
---
env:
TARGET_REPOSITORY: owner/repo
---
# my-workflow.md
---
imports:
- shared/target.md
---
The compiled my-workflow.lock.yml should include TARGET_REPOSITORY: owner/repo in its env section, just as network.allowed entries are merged from shared imports today.
Actual Behavior
The env field in shared/target.md is silently ignored. No entries from it appear in the compiled lock file.
Environment
- Compiler version:
v0.65.7
Reported by Claude Code on behalf of the user.
Feature Request
Summary
The
envfield is currently not supported in shared import files (.mdfiles used as shared imports). When anenvblock is placed in a shared import, the compiler silently ignores it with a warning:Motivation
Shared imports are a great way to centralise common configuration. Currently,
network,engine, andjobsfields can be placed in shared imports and are correctly merged into importing workflows. Theenvfield should behave the same way.A concrete use case: defining a shared
TARGET_REPOSITORYvariable in a shared import so that all workflows that import it automatically inherit the correct target repository, without having to repeat:in every workflow file individually.
Expected Behavior
The compiled
my-workflow.lock.ymlshould includeTARGET_REPOSITORY: owner/repoin itsenvsection, just asnetwork.allowedentries are merged from shared imports today.Actual Behavior
The
envfield inshared/target.mdis silently ignored. No entries from it appear in the compiled lock file.Environment
v0.65.7Reported by Claude Code on behalf of the user.