CopilotC-Nvim / CopilotC-Nvim/CopilotChat.nvim

sensitive content exclusion not honored (option?)

Open
#301 11 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement question
Dominant language
Lua
Stars
3.7k
Forks
171
Avg merge
16h 26m
Merged PRs (30d)
1

Description

We have setup content exclusion using pattern matching in the copilot subscription of our organisation for some repos as we have some sensitive files there. It seems that this plugin is not honoring that; if I select content from a sensitive file and do :CopilotChat then the content of such a file is being analysed.

As far as I understand, copilot plugins themselves need to do something on their part for this matter. I have tried with the official: https://github.com/github/copilot.vim. Code-completion does not work in an excluded file and there is a message:

Error: Your organization 'zhdk' has disabled Copilot for this file

https://docs.github.com/en/copilot/managing-github-copilot-in-your-organization/configuring-content-exclusions-for-github-copilot

Am I perhaps some config option for this plugin?

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the issue by selecting content from an excluded file and running :CopilotChat, then compare the behavior with github/copilot.vim, which reports that Copilot is disabled for the file. Inspect how this plugin obtains selected-file content; done means excluded content is not sent for analysis or the supported configuration is clearly documented.

Written by the indexing model from the issue text.

Assessment

Tech stack
github, lua, neovim
Domain
ai, devtools, security
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.