Using TruffleHog and pre-commit hook to prevent secret exposure

This page summarizes the projects mentioned and recommended in the original post on dev.to

Stream - Scalable APIs for Chat, Feeds, Moderation, & Video.
Stream helps developers build engaging apps that scale to millions with performant and flexible Chat, Feeds, Moderation, and Video APIs and SDKs powered by a global edge network and enterprise-grade infrastructure.
getstream.io
featured
InfluxDB – Built for High-Performance Time Series Workloads
InfluxDB 3 OSS is now GA. Transform, enrich, and act on time series data directly in the database. Automate critical tasks and eliminate the need to move data externally. Download now.
www.influxdata.com
featured
  1. trufflehog

    Find, verify, and analyze leaked credentials

    Here for Linux and Windows users

  2. Stream

    Stream - Scalable APIs for Chat, Feeds, Moderation, & Video. Stream helps developers build engaging apps that scale to millions with performant and flexible Chat, Feeds, Moderation, and Video APIs and SDKs powered by a global edge network and enterprise-grade infrastructure.

    Stream logo
  3. pre-commit

    A framework for managing and maintaining multi-language pre-commit hooks.

    I'm using pre-commit, follow the link to get installation instructions.

  4. demo-trufflehog

    $ git add . $ git commit -m "Try to add a hard-coded secret" TruffleHog...............................................................Failed - hook id: trufflehog - exit code: 183 🐷🔑🐷 TruffleHog. Unearth your secrets. 🐷🔑🐷 2024-07-25T15:07:13+02:00 info-0 trufflehog running source {"source_manager_worker_id": "gWFQC", "with_units": true} 2024-07-25T15:07:13+02:00 info-0 trufflehog scanning repo {"source_manager_worker_id": "gWFQC", "unit": ".", "unit_kind": "dir", "repo": "https://github.com/rafaelherik/demo-trufflehog.git", "base": "7e7de59764df7420fc94897219c7dc55bf33a32e"} Found unverified result 🐷🔑❓ Detector Type: Github Decoder Type: PLAIN Raw result: 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 Rotation_guide: https://howtorotate.com/docs/tutorials/github/ Version: 2 Commit: Staged File: src/main.py Line: 30 Repository: https://github.com/rafaelherik/demo-trufflehog.git Timestamp: 0001-01-01 00:00:00 +0000 2024-07-25T15:07:13+02:00 info-0 trufflehog finished scanning {"chunks": 2, "bytes": 212, "verified_secrets": 0, "unverified_secrets": 1, "scan_duration": "20.145917ms", "trufflehog_version": "3.80.1"}

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts

  • YouTube channel mirror on Jekyll - part 4

    1 project | dev.to | 10 Jul 2025
  • How one bad coder made our stack unbreakable

    1 project | dev.to | 18 May 2025
  • Refactoring Our Codebase with Ruff and Pre-commit: A Developer's Guide

    1 project | dev.to | 18 Apr 2025
  • Amazing `pre-commit` and How To Use It

    3 projects | dev.to | 26 Feb 2025
  • How Should You Use an Auto-Formatter?

    5 projects | dev.to | 28 Jul 2024

Did you know that Python is
the 2nd most popular programming language
based on number of references?