github / github/copilot.vim

Automatically disable copilot in dotenv files

オープン
#135 コメント 0 件 リアクション 9 件 担当者 0 名 GitHub で見る
主要言語
Vim Script
スター
11.7k
フォーク
810
PR マージ指標
30日以内にマージされた PR はありません

説明

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:

```vimscript
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.

コントリビューションガイド

コントリビューションガイドを開く

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。