🪟 Windows TippsThe Gemini desktop app is now available for Windows(11.09.2026 um 17:06 Uhr)
🪟 Windows TippsSetting up live captions stuck in Windows 11(14.09.2026 um 16:31 Uhr)
🕵️ SicherheitslückenBurn Out, Or Fade Away(14.09.2026 um 14:25 Uhr)
🪟 Windows TippsWindows 11's latest update broke my speakers, and I'm not alone(14.09.2026 um 18:54 Uhr)
🪟 Windows TippsThe Gemini desktop app is now available for Windows(11.09.2026 um 17:06 Uhr)
🪟 Windows TippsSetting up live captions stuck in Windows 11(14.09.2026 um 16:31 Uhr)
🕵️ SicherheitslückenBurn Out, Or Fade Away(14.09.2026 um 14:25 Uhr)
🪟 Windows TippsWindows 11's latest update broke my speakers, and I'm not alone(14.09.2026 um 18:54 Uhr)

🔧 Programmierung 🕛 vor 3 Monaten 5 Min Lesezeit
0

Prepush-Guardian: Catch Secrets and Broken Tests Before They Reach Git History

↗ Quelle (dev.to)
🗣️ Stimme:
📑 Inhaltsübersicht

You are about to push. There is a hardcoded API key buried in one of 30 changed files. Or you forgot to write a test for that new module. Or the test suite is silently failing. You will not know until it is already in git history.



Prepush-Guardian catches all of this before the push lands. It is a production-grade Git pre-push hook that scans staged files for secrets, auto-generates missing tests, runs your full test suite, and blocks the push if anything fails before it ever reaches the remote.








Detection Patterns



The secret scanner covers 20+ patterns across four severity levels:








Configuration



Create .neo/config.json to customize behavior. It is auto-created with defaults if absent:

coverage_warn_threshold - default 70. Warn if coverage drops below this percentage.

coverage_block_threshold - default 50. Block push if coverage drops below this percentage.

block_on_low_severity - default false. Also hard-block on LOW findings.

auto_fix_gitignore - default true. Add sensitive filenames to .gitignore automatically.

generate_missing_tests - default true. Auto-generate tests for untested source files.

skip_test_check_for - default ["migrations/", "scripts/", "docs/"]. Directories excluded from test generation.






Exit Codes



0 : All checks passed - push proceeding

1 : Push blocked - CRITICAL/HIGH findings or test failures






File Structure






CODE
prepush-guardian/
├── prepush_guardian.py # Main orchestrator
├── leak_detector.py # Phase 1: secret & entropy detection
├── test_generator.py # Phase 2: AI test generation
├── test_runner.py # Phase 2: test execution + coverage
├── reporter.py # Phase 3: markdown report
├── install.py # Hook installer
├── requirements.txt
├── .env.example
├── .gitignore
├── LICENSE
├── CONTRIBUTING.md
├── architecture.excalidraw
├── infographic.svg
└── tests/
├── test_leak_detector.py
└── fixtures/
├── sample_with_secrets.py
└── sample_clean.py






The three-phase structure maps cleanly to the file names - leak_detector.py handles Phase 1, test_generator.py and test_runner.py handle Phase 2, and reporter.py handles Phase 3. prepush_guardian.py orchestrates all three phases in sequence.






How I Built This Using NEO



This project was built using NEO.

You can also build with NEO in your IDE using the .

You can use NEO MCP with Claude Code: https://heyneo.com/claude-code

Vollständiger Original-Bericht
Ausführliche Details, Code-Beispiele & Hersteller-Stellungnahme auf dev.to.
↗ Original-Artikel auf dev.to lesen
Wie bewertest du diesen Beitrag?
1 Klick Feedback
Teilen mit Netzwerk & Team:

Community-Analysen & Experten-Meinungen 0

Verfasse deine eigene Analyse, teile Workarounds oder diskutiere diesen Vorfall im Blog.
Noch keine Community-Analyse verfasst. Markiere einen Textabschnitt oder klicke oben auf Eigene Analyse verfassen“!
Community Pulse: Relevanz-Einschätzung
1 Klick Experten-Votum
🔴 Akute Relevanz 0%
🟡 In Evaluierung 0%
🟢 Keine Auswirkung 0%
Spannende Innovation 0%
Verwandte Story-Cluster & Quellen (Vektor-KI)
Port 8095 Engine
1 Quelle
The Gemini desktop app is now available for Windows
1 Quelle
Setting up live captions stuck in Windows 11
1 Quelle
Burn Out, Or Fade Away
Ähnliche Beiträge
🔍 Verwandte News

Auch interessante Nachrichten Prepush-Guardian: Catch Secrets and Broken Tests Before They Reach Git History

Thematisch verwandte Begriffe: PrepushGuardian, Catch, Secrets, Broken · 6 Treffer

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...