Skip to content

[plan] Implement/document inline-imports frontmatter flag for self-contained cross-org lock files #24973

Closed

Description

@github-actions

Context

Issue #24949 describes how cross-org workflow_call scenarios fail because the activation job must check out the callee repo using a GITHUB_TOKEN scoped only to the caller's org. A collaborator noted:

"There is an inlined-imports front matter flag. The agent should have suggested it..."

This suggests an inline-imports (or similar) frontmatter flag already exists or is partially implemented to make lock files self-contained by inlining all {{#runtime-import ...}} content at compile time, eliminating the cross-org checkout dependency.

Investigation Needed

  1. Search the codebase for any existing implementation:
    grep -r "inline.import\|inlined.import\|self.contained\|InlineImport\|InlinedImport" pkg/ --include="*.go" -l
    grep -r "inline.import\|inlined.import" pkg/parser/schemas/ -r
  2. Determine the current state:
    • If the flag exists: ensure it works end-to-end for cross-org scenarios and is documented
    • If the flag is not yet implemented: implement it

If the Flag Needs Implementation

In pkg/workflow/ and pkg/parser/:

  1. Add inline-imports: true (or inlined-imports: true) to the frontmatter schema in pkg/parser/schemas/
  2. Parse the flag in the frontmatter config (pkg/workflow/frontmatter_types.go or similar)
  3. In the compiler, when inline-imports: true is set, inline all {{#runtime-import ...}} directives into the lock file at compile time instead of leaving them as runtime directives
  4. When all imports are inlined, the cross-org checkout step becomes unnecessary — skip or make it non-fatal

Documentation

Regardless of implementation status, add/update documentation:

  • Document the inline-imports frontmatter flag in the relevant docs under docs/
  • Explain it as the recommended solution for cross-org workflow_call scenarios
  • Note the trade-off: larger lock files vs. no cross-org token requirement

Acceptance Criteria

Generated by Plan Command for issue #24949 · ● 509.4K · ◷

  • expires on Apr 8, 2026, 10:23 PM UTC

Activity

  1. added
    cookie
    on Apr 6, 2026
  2. github-actions commented on Apr 6, 2026

    @github-actions
    ContributorAuthor

    🍪 Issue Monster has assigned this to Copilot!

    I've identified this issue as a good candidate for automated resolution and assigned it to the Copilot coding agent.

    The Copilot coding agent will analyze the issue and create a pull request with the fix.

    Om nom nom! 🍪

    Note

    🔒 Integrity filter blocked 1 item

    The following item were blocked because they don't meet the GitHub integrity level.

    To allow these resources, lower min-integrity in your GitHub frontmatter:

    tools:
      github:
        min-integrity: approved  # merged | approved | unapproved | none

    🍪 Om nom nom by Issue Monster · ● 382.5K · ◷

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

ai-generatedcookieplan

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions