macOS
brew install git-secretslocal Homebrew formula metadata
安装
brew install git-secretslocal Homebrew formula metadata
sudo apt install git-secretsDebian stable package indexes · git-secrets · 来源: deb.debian.org
sudo dnf install git-secretsFedora Rawhide package metadata · git-secrets · 来源: dl.fedoraproject.org
nix profile install nixpkgs#git-secretsnixpkgs package indexes · pkgs/by-name/gi/git-secrets/package.nix · 来源: api.github.com
概览
Prevents you from committing sensitive information to a git repo
历史
git-secrets is an AWS Labs command-line tool that installs Git hooks and scans commits for prohibited secret patterns. Its best-known workflow is preventing AWS credentials and other sensitive strings from entering Git history.
AWS Labs released git-secrets in 2015 as a hook-driven local scanner. The README documents pre-commit, commit-msg, and prepare-commit-msg hooks, as well as repository and global Git configuration for prohibited and allowed patterns.
The changelog shows rapid maturation after the initial release: 1.1.0 added full-history scanning, `.gitallowed`, cached/no-index/untracked scan modes, and staged-file scanning in hooks; 1.3.0 refined provider output handling, Windows path behavior, and IAM key detection.
git-secrets became a recognizable package because it came from AWS Labs and addressed a common Git failure mode with no server dependency. Homebrew and Linux distribution packaging made it easy to add to developer workstations and repository templates.
Practitioners run `git secrets --install` inside a repository, often followed by `git secrets --register-aws`, so commits are blocked when configured patterns are detected. They also run `git secrets --scan-history` before publishing a repository or add custom providers for organization-specific patterns.
The package is important in Git tooling culture because it turns secret scanning into local hooks and plain Git config. It is small, scriptable, and easy to wire into templates, which made it useful before and alongside hosted secret-scanning services.
安全态势
narrow executable package without higher-risk signals.
绿色 风险 · 低 置信度 · appliance
在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。
local files
These source-backed paths show where this package keeps local settings or durable credentials. Automic Vault can use them as review targets for secret scanning, migration, and command approval.
Config paths the tool may read or write during local use.
.git/config~/.gitconfig~/.config/git/config/etc/gitconfig可执行文件
| 命令 | 类型 | 暴露范围 | 备注 |
|---|---|---|---|
git-secrets | cli | 全局可执行文件 |
新鲜度
这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。
https://github.com/awslabs/git-secrets
安装元数据
| 软件包键 | brew:git-secrets |
|---|---|
| 版本 | 1.3.0 |
| 软件包管理器 | Homebrew |
| 软件包管理器页面 | https://formulae.brew.sh/formula/git-secrets |
| 主页 | https://github.com/awslabs/git-secrets |
| 仓库 | https://github.com/awslabs/git-secrets |
| 上游文档 | https://github.com/awslabs/git-secrets#readme |
| 许可证 | Apache-2.0 |
| 源码归档 | https://github.com/awslabs/git-secrets/archive/refs/tags/1.3.0.tar.gz |
| Bottle | 可用 (于 all) |
| Homebrew post-install | 未定义 |
| 服务 | 未声明 |
注册表事实
| Source Database | Homebrew formula API |
|---|---|
| Tap | homebrew/core |
| Full Name | git-secrets |
| Version Scheme | 0 |
| Revision | 0 |
| Head Version | HEAD |
| Bottle Stable Root URL | https://ghcr.io/v2/homebrew/core |
| Deprecated | no |
| Disabled | no |
| Keg Only | no |
| URL Keys |
|
源数据库匹配
匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。
git-secrets 1.3.0-7
Prevents accidental commits of credentials
https://github.com/awslabs/git-secrets
sudo apt install git-secretsgit-secrets
nix profile install nixpkgs#git-secretsgit-secrets 1.3.0-7
Prevents accidental commits of credentials
https://github.com/awslabs/git-secrets
sudo apt install git-secretsgit-secrets 1.3.0-17.fc44
Prevents committing secrets and credentials into git repos
https://github.com/awslabs/git-secrets/
sudo dnf install git-secrets来源线索
此页面由 av-web 从 scripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。
View the package source record on GitHub.