microsoft / microsoft/vscode

Copilot AH should not access files in non-trusted folders

Open
#332,700 0 comments 0 reactions 2 assignees Claimed by @DonJayamanne View on GitHub
Dominant language
TypeScript
Stars
193k
Forks
42.4k
PR merge metrics
PR metrics pending

Description

When an Copilot SDK session's working directory is not inside a Git repository, customization discovery goes up the parent chain until the user's home directory to look for customization files.
As a result, project-scoped customizations can be inherited from every ancestor between the working directory and $HOME, including $HOME itself.

That's useful for mono-repo use cases, but Copilot should check whether these folders are trusted.

I filed the following issues against the SDK:
https://github.com/github/copilot-agent-runtime/issues/13531
Also it seems that it even goes into sibling directories
https://github.com/github/copilot-agent-runtime/issues/16814

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.