Non-interactive sessions bypass `disableBypassPermissionsMode` managed setting
Chưa có ai nhận issue này.
- Ngôn ngữ chính
- Shell
- Star
- 11.2k
- Fork
- 1.9k
- Merge trung bình
- 14 giờ 16 phút
- Pull request đã merge (30 ngày)
- 6
Mô tả
Describe the bug
Non-interactive (-p / --prompt) with --allow-all / --yolo grant permissions automatically even when .github-private/copilot/managed-settings.json is configured with:
{
"permissions": {
"disableBypassPermissionsMode": "disable"
}
}
Attempting to run /allow-all / /yolo within the interactive shell correctly states:
Bypass permissions mode has been disabled by policy. Contact your administrator for more information.
Affected version
1.0.80
Steps to reproduce the behavior
- Configure
"disableBypassPermissionsMode": "disable". - Pass
--yolo -p {prompt}to copilot CLI.
Expected behavior
yolo mode is ignored and tool calls are denied.
Additional context
No response
Hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- 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.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Hướng nghiên cứu
Bắt đầu bằng cách theo dõi cách CLI xử lý -p/--prompt cùng với --allow-all/--yolo, sau đó so sánh luồng đó với việc kiểm tra policy tương tác /allow-all. Sử dụng .github-private/copilot/managed-settings.json với disableBypassPermissionsMode được đặt thành disable; được xem là hoàn tất khi các lệnh gọi công cụ không tương tác bị từ chối giống như trong shell tương tác.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Đánh giá
- Công nghệ
- shell
- Lĩnh vực
- authorization, cli, security
- Loại issue
- Lỗi
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức độ hoạt động
- Sôi nổi
- Độ rõ ràng
- Khá rõ ràng
- Mức phù hợp với người mới
- 55/100