You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Link to the gh-aw PR: github/gh-aw#43909 — fix: follow symlinks when generating sparse checkout for .github subdirs
When .github/agents (or .github/skills/.github/prompts) is a git symlink pointing to a directory outside .github/ (e.g. ../.ai/agents), the compiler-generated sparse checkout previously only fetched the symlink blob, leaving a dangling symlink at runtime and breaking any {{#runtime-import .github/agents/<agent>.md}} expression. The fix resolves symlinks and appends the real target path to extraPaths.
A workflow that imports an agent file reachable only through a symlinked .github/agents directory. If the sparse checkout does not follow the symlink, the runtime-import fails and the run errors before the agent can create the issue. A successful issue creation confirms the fix is working.
New fixtures or secrets needed
New fixture required: The test repository (or githubnext/gh-aw-side-repo) needs a .github/agents symlink pointing to a directory outside .github/, with at least one .md agent file at the target location. This is the primary open question before this test can be written.
Notes
This may be best implemented as a siderepo variant to keep the fixture change isolated to githubnext/gh-aw-side-repo. Alternatively, the symlink could be added to githubnext/gh-aw-test itself. Needs fixture setup before the .md source can be written — hence an issue rather than a PR.
Warning
Firewall blocked 1 domain
The following domain was blocked by the firewall during workflow execution:
awmgmcpg
To allow these domains, add them to the network.allowed list in your workflow frontmatter:
Motivation
Link to the gh-aw PR: github/gh-aw#43909 — fix: follow symlinks when generating sparse checkout for .github subdirs
When
.github/agents(or.github/skills/.github/prompts) is a git symlink pointing to a directory outside.github/(e.g.../.ai/agents), the compiler-generated sparse checkout previously only fetched the symlink blob, leaving a dangling symlink at runtime and breaking any{{#runtime-import .github/agents/<agent>.md}}expression. The fix resolves symlinks and appends the real target path toextraPaths.Proposed test
test-copilot-sparse-checkout-symlink-agents.mdworkflow_dispatchcreate-issuesiderepo— see Notes)Minimal test prompt sketch
A workflow that imports an agent file reachable only through a symlinked
.github/agentsdirectory. If the sparse checkout does not follow the symlink, the runtime-import fails and the run errors before the agent can create the issue. A successful issue creation confirms the fix is working.New fixtures or secrets needed
New fixture required: The test repository (or
githubnext/gh-aw-side-repo) needs a.github/agentssymlink pointing to a directory outside.github/, with at least one.mdagent file at the target location. This is the primary open question before this test can be written.Notes
This may be best implemented as a
siderepovariant to keep the fixture change isolated togithubnext/gh-aw-side-repo. Alternatively, the symlink could be added togithubnext/gh-aw-testitself. Needs fixture setup before the.mdsource can be written — hence an issue rather than a PR.Warning
Firewall blocked 1 domain
The following domain was blocked by the firewall during workflow execution:
awmgmcpgSee Network Configuration for more information.