Sandbox bypass prompt for explicitly writable skills directory

Offen
#5,601 0 Kommentare 1 Reaktion 0 zugewiesene Personen Auf GitHub ansehen

Dieses Issue hat noch niemand übernommen.

Bewertung

Schwierigkeit
4/5
Geschätzter Aufwand
1-2 Tage
Anfängerfreundlichkeit
45/100
Issue-Typ
Bug
Klarheit
Größtenteils klar
Aktivitätsstatus
Aktiv
Tech-Stack
github, python
Bereich
cli, security

Rechercherichtung

Start by tracing how GitHub Copilot CLI resolves sandbox.userPolicy.filesystem.readwritePaths when editing a skill through the ~/.copilot/skills symlink, and compare that path with the behavior when launched from the skill directory. Check how conflicting grants are handled and add or locate a regression test for this reproduction. Done means an explicitly granted writable skills directory no longer triggers a sandbox-bypass prompt.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

area:permissions
Describe the bug

Editing a skill requests sandbox-bypass approval despite an explicit read-write grant for the skills directory.

Affected version

GitHub Copilot CLI 1.0.117

Steps to reproduce the behavior
  1. Enable sandboxing and add the skills directory to sandbox.userPolicy.filesystem.readwritePaths.
  2. From the repository root, ask Copilot to edit a skill.
  3. Copilot requests sandbox-bypass approval.
Expected behavior

The explicit read-write grant permits the edit without a bypass prompt.

Additional context
  • macOS 27.2.1, ARM64.
  • ~/.copilot/skills is a symlink to the skills directory of a shared repo in our setup.
  • Changing the working directory to the skill's directory before requesting the edit avoids the prompt.
  • The documentation does not explain precedence for conflicting grants on the same path.
Vorherrschende Sprache
Python
Sterne
11.5k
Forks
2k
Ø Merge
6 Std. 34 Min.
Gemergte PRs (30 T.)
3

Entwicklungsumgebung

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus github/copilot-cli

Alle Issues in github/copilot-cli

Ähnliche Issues

Weitere Issues zu Python

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.