# awslabs/git-secrets

Prevents you from committing secrets and credentials into git repositories

Repository: https://github.com/awslabs/git-secrets
Canonical: https://ross.abutalabs.com/products/git-secrets
Language: Shell
License: Apache-2.0
License Family: permissive
Last push: 2025-09-17T20:31:20+00:00

## Health v2 (maintenance only)
Score: 51/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 42, release rhythm 35, longevity 100
- inputs: {"age_days": 4067, "days_push": 350, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 13380, forks 1253 (observed 2026-08-28T04:11:03.208144+00:00)

## What it is
git-secrets is a command-line tool that scans git commits, commit messages, and merge histories for secrets and credentials, rejecting commits that match prohibited patterns. It ships with built-in AWS credential detection and supports custom secret providers and regex patterns.

## Use cases
- prevent committing AWS keys to git
- scan repo history for leaked passwords
- add pre-commit hook to block secrets
- check repository before making it public
- scan for custom credential patterns

## When to choose
- you want a lightweight git hook-based guard against committing secrets
- you primarily need AWS credential detection
- you need to audit full git history for leaked credentials

## When to avoid
- you need broad multi-cloud secret scanning with many built-in providers
- you want CI-side scanning rather than local git hooks
- you need active maintenance with frequent updates

## Facets
- artifact type: cli-tool
- maturity: stable
- function: security, vulnerability-scanning, version-control, developer-tools
- domain: security, version-control, developer-tools
- platform: windows, cli
- tags: git-hooks, secrets-detection, aws-credentials, pre-commit, credential-scanning, linux, macos

## Member repositories
- awslabs/git-secrets (main) score 51

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:11:03.208144+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T17:13:20.340339+00:00, confidence not recorded.
  - readme: https://github.com/awslabs/git-secrets (fetched 2026-08-28T04:11:03.208144+00:00, sha 325b272b3565)
- Data as of 2026-08-30T08:39:29.467469+00:00.
