Non-interactive sessions bypass `disableBypassPermissionsMode` managed setting
まだ誰も着手していません。
- 主要言語
- Shell
- スター
- 11.2k
- フォーク
- 1.9k
- 平均マージ
- 14時間 16分
- マージ済み PR(30日)
- 6
説明
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
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
まず、CLI が -p/--prompt を --allow-all/--yolo と併用した場合にどのように処理するかを追跡し、その経路をインタラクティブな /allow-all ポリシーチェックと比較します。disableBypassPermissionsMode を disable に設定した .github-private/copilot/managed-settings.json を使用します。完了の条件は、非インタラクティブなツール呼び出しがインタラクティブシェルの場合と同様に拒否されることです。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- shell
- 領域
- authorization, cli, security
- issue の種類
- バグ
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 活発さ
- 活発
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 55/100