Skip to main content

omerta

Catch .env secrets leaking into git: a pre-commit hook and CLI that fails when an API key or any value of your env files is staged, tracked or anywhere in the history.

uvx omerta check --all    # every tracked file
uvx omerta history        # every commit, tag and message
uvx omerta docker         # what your Dockerfiles' builds would copy
  • Matches your actual values, as written and as encoded in URLs, JSON and base64, so it catches secrets of any format; it complements pattern scanners, which find what looks like a key.
  • Reports the file, the line and the variable's name, never the value; a tracked env file is a leak in itself.
  • Fails when .dockerignore, which Docker reads instead of .gitignore, leaves an env file in a Dockerfile's build context, matched as Docker's BuildKit matches it.
  • Runs entirely offline.

As pre-commit hooks:

repos:
  - repo: https://github.com/shcherbak-ai/omerta
    rev: v0.2.0
    hooks:
      - id: omerta
      - id: omerta-docker

With Husky, Lefthook or a plain git hook: uvx omerta@0.2.0 check.

See the repository for the options, CI and configuration.

Licensed under MIT.

Metadata

Release files for omerta 0.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for omerta 0.2.0
File Size Uploaded Provenance Actions
omerta-0.2.0.tar.gz 41.3 kB With provenance Details for omerta-0.2.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for omerta 0.2.0
File Interpreter ABI Platform Actions
omerta-0.2.0-py3-none-any.whl Python 3 none any Details for omerta-0.2.0-py3-none-any.whl

Total release size: 87.5 kB

Release files / omerta-0.2.0.tar.gz

Download URL omerta-0.2.0.tar.gz
Size 41.3 kB
Tags Source
SHA-256 checksum
How to use checksums
912a47b71973f25073b03f4c20615c14ba7575c61a51c5554d72f4c609947513
BLAKE2b-256 checksum
How to use checksums
87775b806001f66fca28d6b299793b3c6703c5086a81c27680f68fb02418cde8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 20, 2026.

Transparency log

Release files / omerta-0.2.0-py3-none-any.whl

Download URL omerta-0.2.0-py3-none-any.whl
Size 46.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
2b2226fe4b7220629dfec93eb0629b80ae8433d5b4da5f7648a4aed38a05c020
BLAKE2b-256 checksum
How to use checksums
4b0d0c566af0645a3b2ab117f4515749e20e3a766d2a2f7a4498d45c91fc607d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 20, 2026.

Transparency log

Security for omerta 0.2.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for omerta-0.2.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 20, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page