GitGuardian/ggshield

GitHub: GitGuardian/ggshield

一款 CLI 密钥检测工具,可扫描代码仓库、Docker 镜像和 PyPI 包中的 500 多种硬编码敏感信息,防止凭证泄露。

Stars: 1912 | Forks: 187

# [ggshield](https://github.com/GitGuardian/ggshield): 使用 GitGuardian 保护您的代码 [![PyPI](https://img.shields.io/pypi/v/ggshield?color=%231B2D55&style=for-the-badge)](https://pypi.org/project/ggshield/) [![Docker Image Version (latest semver)](https://img.shields.io/docker/v/gitguardian/ggshield?color=1B2D55&sort=semver&style=for-the-badge&label=Docker)](https://hub.docker.com/r/gitguardian/ggshield) [![License](https://img.shields.io/github/license/GitGuardian/ggshield?color=%231B2D55&style=for-the-badge)](LICENSE) [![GitHub stars](https://img.shields.io/github/stars/gitguardian/ggshield?color=%231B2D55&style=for-the-badge)](https://github.com/GitGuardian/ggshield/stargazers) [![GitHub Workflow Status](https://img.shields.io/github/actions/workflow/status/GitGuardian/ggshield/main.yml?branch=main&style=for-the-badge)](https://github.com/GitGuardian/ggshield/actions) [![Codecov](https://img.shields.io/codecov/c/github/GitGuardian/ggshield?style=for-the-badge)](https://codecov.io/gh/GitGuardian/ggshield/) `ggshield` 是一个 CLI 应用程序,可在您的本地环境或 CI 环境中运行,帮助您检测 500 多种类型的机密信息。 `ggshield` 通过 [py-gitguardian](https://github.com/GitGuardian/py-gitguardian) 使用我们的 [公开 API](https://api.gitguardian.com/docs) 来扫描和检测文件及其他文本内容中的潜在漏洞。 使用 `ggshield` 进行扫描时,仅存储调用时间、请求大小和扫描模式等元数据,因此机密信息不会显示在您的仪表板上,并且**您的文件和机密信息不会被存储**。 # 目录 - [安装](#installation) - [macOS](#macos) - [Homebrew](#homebrew) - [独立 .pkg 安装包](#standalone-pkg-package) - [Linux](#linux) - [Deb 和 RPM 包](#deb-and-rpm-packages) - [Windows](#windows) - [Chocolatey](#chocolatey) - [独立 .zip 压缩包](#standalone-zip-archive) - [所有操作系统](#all-operating-systems) - [使用 pipx](#using-pipx) - [使用 pip](#using-pip) - [初始设置](#initial-setup) - [使用 `ggshield auth login`](#using-ggshield-auth-login) - [手动设置](#manual-setup) - [入门指南](#getting-started) - [机密信息](#secrets) - [集成](#integrations) - [了解更多](#learn-more) - [输出](#output) - [相关开源项目](#related-open-source-projects) - [许可证](#license) # 安装