permissions-config.json commandIdentifiers with spaces still require approval
- 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
Following the examples in https://docs.github.com/en/copilot/reference/copilot-cli-reference/cli-config-dir-reference#examples I'm trying to add "make fix" as command to be automatically allowed and it's not working, permission is always requested.
OTOH adding just "make" makes all make commands automatically allowed.
### Affected version
GitHub Copilot CLI 1.0.71.
### Steps to reproduce the behavior
1. Write this in `~/.copilot/permissions-config.json`
```json
{
"locations": {
"/some/path": {
"tool_approvals": [
{
"kind": "commands",
"commandIdentifiers": [
"make fix",
"make:fix",
"make(fix)",
"shell(make fix)",
"bash(make fix)"
]
}
]
}
}
}
```
2. `cd /some/path && copilot`
3. say "run make fix"
### Expected behavior
no questions asked
### Additional context
_No response_
Hướng dẫn đóng góp
Hướng nghiên cứu
Bắt đầu bằng cách tái hiện hành vi phê duyệt với ~/.copilot/permissions-config.json và các commandIdentifiers được liệt kê, sau đó theo dõi cách Copilot CLI xử lý việc phê duyệt lệnh. Hoàn tất khi "make fix" chạy mà không cần phê duyệt khi được cấu hình, đồng thời hành vi rộng hơn hiện có của "make" vẫn đúng.
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
- 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
- Ít trao đổi
- Độ rõ ràng
- Đặc tả rõ ràng
- Mức phù hợp với người mới
- 68/100