Sandbox bypass prompt for explicitly writable skills directory

Đang mở
#5,601 0 bình luận 1 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
45/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
github, python
Lĩnh vực
cli, security

Hướng nghiên cứu

Start by tracing how GitHub Copilot CLI resolves sandbox.userPolicy.filesystem.readwritePaths when editing a skill through the ~/.copilot/skills symlink, and compare that path with the behavior when launched from the skill directory. Check how conflicting grants are handled and add or locate a regression test for this reproduction. Done means an explicitly granted writable skills directory no longer triggers a sandbox-bypass prompt.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

area:permissions
Describe the bug

Editing a skill requests sandbox-bypass approval despite an explicit read-write grant for the skills directory.

Affected version

GitHub Copilot CLI 1.0.117

Steps to reproduce the behavior
  1. Enable sandboxing and add the skills directory to sandbox.userPolicy.filesystem.readwritePaths.
  2. From the repository root, ask Copilot to edit a skill.
  3. Copilot requests sandbox-bypass approval.
Expected behavior

The explicit read-write grant permits the edit without a bypass prompt.

Additional context
  • macOS 27.2.1, ARM64.
  • ~/.copilot/skills is a symlink to the skills directory of a shared repo in our setup.
  • Changing the working directory to the skill's directory before requesting the edit avoids the prompt.
  • The documentation does not explain precedence for conflicting grants on the same path.
Ngôn ngữ chính
Python
Star
11.5k
Fork
2k
Merge trung bình
6 giờ 34 phút
Pull request đã merge (30 ngày)
3

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của github/copilot-cli

Tất cả issue của github/copilot-cli

Issue tương tự

Thêm issue về Python

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.