permissions-config.json commandIdentifiers with spaces still require approval
- Dominant language
- Shell
- Stars
- 11.2k
- Forks
- 1.9k
- Avg merge
- 14h 16m
- Merged PRs (30d)
- 6
Description
### 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_
Contributor guide
Research direction
Start by reproducing the approval behavior with ~/.copilot/permissions-config.json and the listed commandIdentifiers, then trace the Copilot CLI command-approval handling. Done means "make fix" runs without approval when configured, while the existing broader "make" behavior remains correct.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- shell
- Domain
- cli, security
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Quiet
- Clarity
- Clearly specified
- Newbie friendliness
- 68/100