GitGuardian/ggshield

GitHub: GitGuardian/ggshield

一款用于在代码提交与 CI 流程中检测并阻止硬编码密钥的 CLI 与集成工具。

Stars: 1937 | Forks: 193

# [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` 通过我们的 [公共 API](https://api.gitguardian.com/docs) 和 [py-gitguardian](https://github.com/GitGuardian/py-gitguardian) 来扫描和检测文件及其他文本内容中的潜在漏洞。 仅从扫描中存储元数据,例如调用时间、请求大小和扫描模式,因此密钥不会显示在您的仪表板上,**您的文件和密钥不会被存储**。 # 目录 - [安装](#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) # 安装