Skip to content

Commit 8898aea

Browse files
patnikoCopilot
andcommitted
Clone runtime repo inside workspace for sandbox access
The agent runs in a chroot that only sees GITHUB_WORKSPACE. Clone copilot-agent-runtime into the workspace directory so the agent can search it with local bash tools. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent 7ad1de3 commit 8898aea

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

.github/workflows/cross-repo-issue-analysis.lock.yml

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.github/workflows/cross-repo-issue-analysis.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ permissions:
1515
pull-requests: read
1616
steps:
1717
- name: Clone copilot-agent-runtime
18-
run: git clone --depth 1 https://x-access-token:${{ secrets.RUNTIME_TRIAGE_TOKEN }}@github.com/github/copilot-agent-runtime.git /home/runner/work/copilot-agent-runtime
18+
run: git clone --depth 1 https://x-access-token:${{ secrets.RUNTIME_TRIAGE_TOKEN }}@github.com/github/copilot-agent-runtime.git ${{ github.workspace }}/copilot-agent-runtime
1919
tools:
2020
github:
2121
toolsets: [default]
@@ -81,9 +81,9 @@ Search the copilot-sdk codebase on disk to understand whether the reported probl
8181

8282
### Step 3: Investigate copilot-agent-runtime
8383

84-
If the issue does NOT appear to be caused by SDK code, or you suspect the runtime is involved, investigate the **copilot-agent-runtime** repo. It has been cloned to `/home/runner/work/copilot-agent-runtime`.
84+
If the issue does NOT appear to be caused by SDK code, or you suspect the runtime is involved, investigate the **copilot-agent-runtime** repo. It has been cloned to `./copilot-agent-runtime/` in the current working directory.
8585

86-
- Use bash tools (`grep`, `find`, `cat`) to search the runtime codebase directly on disk
86+
- Use bash tools (`grep`, `find`, `cat`) to search the runtime codebase at `./copilot-agent-runtime/`
8787
- Look at the server-side JSON-RPC handling, session management, tool execution, and response generation
8888
- Focus on the areas that correspond to the reported issue (e.g., if the issue is about streaming, look at the runtime's streaming implementation)
8989

0 commit comments

Comments
 (0)