Automatically disable copilot in dotenv files
还没有人认领这个 Issue。
评估
调研方向
以 vimrc workaround 作为行为参考:对于 .env 和 .env.* 等 dotenv 文件,Copilot 默认应处于禁用状态。首先跟踪 filetypes 的检测方式以及 g:copilot_filetypes 的应用方式,然后验证普通 filetypes 仍保持启用,而 dotenv 文件默认处于禁用状态。
由索引模型根据 Issue 内容生成。
描述
It seems like a big security issue to have Copilot running by default within dotenv files (i.e. .env) that contain extremely sensitive information (API keys, access tokens, passwords, etc).
Can this be disabled by default?
I've circumvented this locally with this code in my vimrc:
augroup dotenv_detect
autocmd!
autocmd BufRead,BufNewFile *.env,*.env.* set filetype=dotenv
augroup END
let g:copilot_filetypes = {
\ '*': v:true,
\ 'dotenv': v:false
\ }
But this feels like a pretty general best practice that should be opt-out, not opt-in.
- 主要语言
- Vim Script
- 星标
- 11.7k
- 派生
- 812
- PR 合并指标
- 30 天内没有已合并 PR
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
github/copilot.vim 的其他 Issue
-
难度 1/5 1 小时以内 新手友好度 82/100
github/copilot.vim#303 ·
-
难度 2/5 1-3 小时 新手友好度 72/100
github/copilot.vim#276 · 1 条评论 · 1 个 reaction ·
-
Neomarley 未关闭
难度 5/5 一周以上 新手友好度 1/100
github/copilot.vim#304 · 1 个 reaction ·
-
Readme. 未关闭
难度 2/5 1-3 小时 新手友好度 20/100
github/copilot.vim#302 · 4 条评论 ·
-
Micky 未关闭
难度 5/5 一周以上 新手友好度 1/100
github/copilot.vim#301 ·
查看 github/copilot.vim 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 75/100
vercel-labs/just-bash#464 ·
-
Bug
难度 2/5 1-3 小时 新手友好度 70/100
Automattic/safe-publish#594 ·
-
bug
难度 1/5 1 小时以内 新手友好度 85/100
-
难度 2/5 1-3 小时 新手友好度 65/100
-
bug feat:crypto feat:utils
难度 2/5 1-3 小时 新手友好度 70/100