permissions-config.json commandIdentifiers with spaces still require approval
- Langage dominant
- Shell
- Étoiles
- 11.2k
- Forks
- 1.9k
- Merge moyen
- 14 h 16 min
- PR mergées (30 j)
- 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_
Guide de contribution
Ouvrir le guide de contribution
Piste de recherche
Commencez par reproduire le comportement d’approbation avec ~/.copilot/permissions-config.json et les commandIdentifiers listés, puis suivez la gestion de l’approbation des commandes dans Copilot CLI. C’est terminé lorsque "make fix" s’exécute sans approbation lorsqu’il est configuré ainsi, tandis que le comportement plus large existant de "make" reste correct.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Évaluation
- Stack technique
- shell
- Domaine
- cli, security
- Type d'issue
- Bug
- Difficulté
- 3/5
- Temps estimé
- 1-2 jours
- Activité
- Calme
- Clarté
- Clairement spécifiée
- Accessibilité débutants
- 68/100