Skip to content

The CLI ignores the permission settings and reads files to which it does not have access rights #326

@TacsikZoli

Description

@TacsikZoli

Describe the bug

When I was using the Copilot CLI, I noticed that it was reading files it shouldn't be, as there's a rule that it can't read files like config files, for example.
The CLI, ignoring the settings, reads the file using the PowerShell command Get-Content.
The setting works because when I use Copilot with chat (in Ask or Agent mode), it refuses to read the file because it doesn't have the necessary permissions/rights.

Image Image

Affected version

No response

Steps to reproduce the behavior

Ask the Copilot CLI to read a file it doesn't have permission to access.

Expected behavior

Like Coplit Chat, it responds that it cannot read this file because it doesn't have the necessary permissions/rights.

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions