SourceForge logo
SourceForge logo
git-secrets

git-secrets

Prevents you from committing secrets and credentials into git

This is an exact mirror of the git-secrets project, hosted at https://github.com/awslabs/git-secrets. SourceForge is not affiliated with git-secrets. For more information, see the SourceForge Open Source Mirror Directory.
Share This
Email in envelope

Get an email when there's a new version of git-secrets

Linux Mac Windows

git-secrets is a Git extension that helps prevent secrets—API keys, credentials, tokens, private keys—from being accidentally committed into version control. It works by applying configurable regular-expression patterns over commit contents (and merge history) and rejecting commits or merges that violate the policy. The tool includes hooks that integrate into git commit and git merge, as well as commands to list, add, or remove secret patterns, and to scan existing history for leaks. Teams often deploy it as part of their developer toolchain to enforce a security guardrail: you catch leaks early rather than discovering them later. It is also often used in CI pipelines or continuous code quality checks to detect in-flight vulnerabilities. While git-secrets is not a full secrets management system, it plays a key role in defense-in-depth by preventing accidental exposure in source.

Features

  • Installs Git hooks (pre-commit, commit-msg, prepare-commit-msg) that block commits or merges containing prohibited patterns
  • Ability to scan past history (all commits, existing repository) for patterns to catch issues retroactively
  • Configurable prohibited and allowed patterns via regex or literal matching, allowing suppression of false positives
  • Support for "secret providers" which are executables that output additional prohibited patterns (e.g. AWS credentials)
  • Cross-platform install support: *nix (Linux/macOS), Windows via PowerShell, Homebrew etc.
  • Optionally skip checks via --no-verify for special cases, also ability to set global templates so new repos automatically include hooks

Project Activity

See All Activity >

Categories

Git

License

Apache License V2.0

Follow git-secrets

git-secrets Web Site

You Might Also Like
The All-in-One Commerce Platform for Businesses - Shopify Icon
The All-in-One Commerce Platform for Businesses - Shopify

Shopify offers plans for anyone that wants to sell products online and build an ecommerce store, small to mid-sized businesses as well as enterprise

Shopify is a leading all-in-one commerce platform that enables businesses to start, build, and grow their online and physical stores. It offers tools to create customized websites, manage inventory, process payments, and sell across multiple channels including online, in-person, wholesale, and global markets. The platform includes integrated marketing tools, analytics, and customer engagement features to help merchants reach and retain customers. Shopify supports thousands of third-party apps and offers developer-friendly APIs for custom solutions. With world-class checkout technology, Shopify powers over 150 million high-intent shoppers worldwide. Its reliable, scalable infrastructure ensures fast performance and seamless operations at any business size.
Learn More
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of git-secrets!

Additional Project Details

Operating Systems

Linux, Mac, Windows

Programming Language

PowerShell

Related Categories

PowerShell Git Software

Registered

2025年09月19日
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.
Thanks for helping keep SourceForge clean.
X

Briefly describe the problem (required):
Upload screenshot of ad (required):
Select a file, or drag & drop file here.
Screenshot instructions:

Click URL instructions:
Right-click on the ad, choose "Copy Link", then paste here →
(This may not be possible with some types of ads)

More information about our ad policies

Ad destination/click URL:

AltStyle によって変換されたページ (->オリジナル) /