跳到正文
DEV Community · AI· flisk·· 8 天前AI 评分57

如何在 GitHub 仓库合并前查找泄露密钥

Secrets in a GitHub Repo: How to Find Leaked Keys Before the Merge

AI 导读

文章介绍如何用 GEL 在合并前扫描每个 Pull Request 中的密钥,并在 CI 中阻止检查通过。GEL 使用 Node,不调用模型或网络;在 30 个公开仓库的测试中,它检出了 5 种格式的 150 个植入密钥,干净仓库中未报告密钥,但作者指出这项测试衡量的是召回率,并不保证能发现代码中的所有密钥。

来源:DEV Community · AI · dev.to