[External Plugin]: leoprevent

未关闭 适合新手
#6,247 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
2/5
预计耗时
1-3 小时
新手友好度
72/100
Issue 类型
功能
描述清晰度
描述清楚
活跃度
活跃
技术栈
github, javascript
领域
security

调研方向

先阅读向 awesome-copilot 添加插件的贡献指南,然后检查提交的插件:leotrace-hq/leoprevent-plugin,路径 copilot/leoprevent,ref v0.2.46,commit 0ab0fadfc3af450a49f0b6d0d2ffefd89504c70c。根据仓库的插件要求检查该提交;当插件连同其元数据和文件被接受并放入相应的目录位置时,工作即告完成。

由索引模型根据 Issue 内容生成。

描述

Plugin name

leoprevent

Short description

A Stop hook that has the Copilot agent review its own changes for security flaws and fix them before it finishes the turn. Requires a LeoTrace account. Each turn sends the changed code (the diff plus one hop of imported context), the prompt, and turn metadata including the developer's git name and email to the LeoTrace API for review; after a finding, the fix and the agent's reply are sent too. Secret files and symlinks are never read.

GitHub repository

leotrace-hq/leoprevent-plugin

Plugin path inside the repository

copilot/leoprevent

Ref to review

v0.2.46

Commit SHA to review

0ab0fadfc3af450a49f0b6d0d2ffefd89504c70c

Version

0.2.46

License identifier

Apache-2.0

Author name

LeoTrace

Author URL

https://leotrace.io

Homepage URL

https://leotrace.io

Keywords

security
code-review
appsec
secure-coding
vulnerabilities

Additional notes

Tested at this layout with Copilot CLI 1.0.105 and VS Code 1.144.1 on macOS: the hooks load, a planted SQL injection is reported to the agent, fixed and re-checked in the same session. The plugin fails open: if the LeoTrace API is unreachable or the account is not signed in, the turn ends normally.

主要语言
JavaScript
星标
40.8k
派生
5.3k
平均合并
2 天 3 小时
30 天内合并 PR
168

环境准备

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

github/awesome-copilot 的其他 Issue

查看 github/awesome-copilot 的全部 Issue

相似的 Issue

更多 JavaScript Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。