github / github/copilot-cli

Approval for commands is not fine grained enough (subcommand permission)

未关闭
#572 0 条评论 3 个 reaction 已指派 0 人 在 GitHub 查看
area:permissions
主要语言
Shell
星标
11.2k
派生
1.9k
平均合并
14 小时 16 分钟
30 天内合并 PR
6

描述

### Describe the bug

Like other coding agents, copilot asks if it is allowed to run commands. However, for commands like `uv` or `cargo` that can do many things, it only asks permission for the _top level command_ and not for the actual _subcommand_ that it wants to run.

This is problematic because `uv run` can run anything including destructive scripts or `carg some-plugin` can make unintended changes.

This is a request to allow for more fine grained permissions where I can approve what Copilot _actually_ intends to execute.

### Affected version

_No response_

### Steps to reproduce the behavior

_No response_

### Expected behavior

_No response_

### Additional context

_No response_

贡献指南

打开贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。