Metadata-Version: 2.5
Name: secretsentinel-scanner
Version: 1.0.0
Summary: Web3-focused secret leakage detection and DevSecOps platform built on Gitleaks
Project-URL: Homepage, https://github.com/SaIdEeVaN/secretsentinel
Project-URL: Documentation, https://github.com/SaIdEeVaN/secretsentinel#readme
Project-URL: Issues, https://github.com/SaIdEeVaN/secretsentinel/issues
Project-URL: Changelog, https://github.com/SaIdEeVaN/secretsentinel/blob/main/CHANGELOG.md
Author: SecretSentinel contributors
License-Expression: MIT
Keywords: devsecops,gitleaks,secrets,security,web3
Classifier: Development Status :: 4 - Beta
Classifier: Environment :: Console
Classifier: Intended Audience :: Developers
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Topic :: Security
Requires-Python: >=3.11
Requires-Dist: fastapi<1,>=0.121
Requires-Dist: pyyaml<7,>=6.0.1
Requires-Dist: sqlalchemy<3,>=2.0.30
Requires-Dist: uvicorn<1,>=0.30
Provides-Extra: blockchain
Requires-Dist: eth-account<1,>=0.13; extra == 'blockchain'
Provides-Extra: dev
Requires-Dist: eth-account<1,>=0.13; extra == 'dev'
Requires-Dist: httpx>=0.27; extra == 'dev'
Requires-Dist: pytest>=8; extra == 'dev'
Provides-Extra: postgres
Requires-Dist: psycopg[binary]<4,>=3.2; extra == 'postgres'
Description-Content-Type: text/markdown

# SecretSentinel Scanner

Find leaked secrets in current files and Git history before they reach a
pull request: application credentials and Web3 signing keys, seed phrases and
RPC keys. Built on [Gitleaks](https://github.com/gitleaks/gitleaks), with
reviewed exceptions and a fail-closed CI check. Secret values are never printed
or stored.

```bash
pip install secretsentinel-scanner
```

The command is `secretsentinel`. It needs Python 3.11+ and Gitleaks 8.x, either
on PATH or set in `GITLEAKS_PATH`.

```bash
secretsentinel doctor
```

```bash
secretsentinel check .
```

`check` scans current files and history and exits 1 on blocking findings (0 pass,
2 invalid input or policy, 3 scanner error), so it can fail a CI job.

## Before each commit

With the [pre-commit](https://pre-commit.com) framework:

```yaml
repos:
  - repo: https://github.com/SaIdEeVaN/secretsentinel
    rev: v1.0.0
    hooks:
      - id: secretsentinel
```

Or without it: `secretsentinel hook install /path/to/repo`.

## In GitHub Actions

```yaml
- uses: actions/checkout@v7
  with:
    fetch-depth: 0
- uses: SaIdEeVaN/secretsentinel@v1
```

## What it never does

It never uses, validates or sends a detected credential anywhere, and never runs
code from a scanned repository. Reports contain the rule, file, line and commit,
never the value. A clean scan is not proof that a repository has no secrets.

Documentation, the web dashboard and the rule audit:
https://github.com/SaIdEeVaN/secretsentinel
