credlock 2.0.1__tar.gz → 2.0.2__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (28) hide show
  1. {credlock-2.0.1 → credlock-2.0.2}/PKG-INFO +1 -1
  2. {credlock-2.0.1 → credlock-2.0.2}/credlock/__init__.py +1 -1
  3. {credlock-2.0.1 → credlock-2.0.2}/credlock/cli.py +17 -2
  4. {credlock-2.0.1 → credlock-2.0.2}/credlock.egg-info/PKG-INFO +1 -1
  5. {credlock-2.0.1 → credlock-2.0.2}/setup.py +1 -1
  6. {credlock-2.0.1 → credlock-2.0.2}/LICENSE +0 -0
  7. {credlock-2.0.1 → credlock-2.0.2}/README.md +0 -0
  8. {credlock-2.0.1 → credlock-2.0.2}/credlock/config.py +0 -0
  9. {credlock-2.0.1 → credlock-2.0.2}/credlock/entropy.py +0 -0
  10. {credlock-2.0.1 → credlock-2.0.2}/credlock/formatter.py +0 -0
  11. {credlock-2.0.1 → credlock-2.0.2}/credlock/git_hook.py +0 -0
  12. {credlock-2.0.1 → credlock-2.0.2}/credlock/gitignore_parser.py +0 -0
  13. {credlock-2.0.1 → credlock-2.0.2}/credlock/patterns.py +0 -0
  14. {credlock-2.0.1 → credlock-2.0.2}/credlock/scanner.py +0 -0
  15. {credlock-2.0.1 → credlock-2.0.2}/credlock/storage.py +0 -0
  16. {credlock-2.0.1 → credlock-2.0.2}/credlock.egg-info/SOURCES.txt +0 -0
  17. {credlock-2.0.1 → credlock-2.0.2}/credlock.egg-info/dependency_links.txt +0 -0
  18. {credlock-2.0.1 → credlock-2.0.2}/credlock.egg-info/entry_points.txt +0 -0
  19. {credlock-2.0.1 → credlock-2.0.2}/credlock.egg-info/requires.txt +0 -0
  20. {credlock-2.0.1 → credlock-2.0.2}/credlock.egg-info/top_level.txt +0 -0
  21. {credlock-2.0.1 → credlock-2.0.2}/setup.cfg +0 -0
  22. {credlock-2.0.1 → credlock-2.0.2}/tests/__init__.py +0 -0
  23. {credlock-2.0.1 → credlock-2.0.2}/tests/test_cli.py +0 -0
  24. {credlock-2.0.1 → credlock-2.0.2}/tests/test_entropy.py +0 -0
  25. {credlock-2.0.1 → credlock-2.0.2}/tests/test_gitignore.py +0 -0
  26. {credlock-2.0.1 → credlock-2.0.2}/tests/test_patterns.py +0 -0
  27. {credlock-2.0.1 → credlock-2.0.2}/tests/test_scanner.py +0 -0
  28. {credlock-2.0.1 → credlock-2.0.2}/tests/test_scanner_improved.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: credlock
3
- Version: 2.0.1
3
+ Version: 2.0.2
4
4
  Summary: 🔐 Prevent accidental credential commits to Git
5
5
  Home-page: https://github.com/VedhaSriD/credlock
6
6
  Author: Vedha Sri
@@ -1,6 +1,6 @@
1
1
  """CredLock - Prevent accidental secret commits to Git"""
2
2
 
3
- __version__ = "2.0.1"
3
+ __version__ = "2.0.2"
4
4
  __author__ = "Your Name"
5
5
  __description__ = "Automatic credential detection in your code"
6
6
 
@@ -63,8 +63,23 @@ def scan(
63
63
  # Print summary
64
64
  print_scan_summary(len(findings), elapsed, files_scanned)
65
65
 
66
- # Save to history
67
- save_scan(len(findings), path)
66
+ # Save to history - pass findings list, not count!
67
+ try:
68
+ # Convert Finding objects to dicts for storage
69
+ findings_dicts = [
70
+ {
71
+ "file_path": f.file_path,
72
+ "line_number": f.line_number,
73
+ "pattern_name": f.pattern_name,
74
+ "confidence": f.confidence,
75
+ "matched_string": f.matched_string[:50] + "..." if len(f.matched_string) > 50 else f.matched_string,
76
+ }
77
+ for f in findings
78
+ ]
79
+ save_scan(findings_dicts)
80
+ except Exception as e:
81
+ # Silently fail if history save fails (doesn't block scan)
82
+ pass
68
83
 
69
84
  # JSON output if requested
70
85
  if json_output:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: credlock
3
- Version: 2.0.1
3
+ Version: 2.0.2
4
4
  Summary: 🔐 Prevent accidental credential commits to Git
5
5
  Home-page: https://github.com/VedhaSriD/credlock
6
6
  Author: Vedha Sri
@@ -9,7 +9,7 @@ with open("README.md", "r", encoding="utf-8") as fh:
9
9
 
10
10
  setup(
11
11
  name="credlock",
12
- version="2.0.1",
12
+ version="2.0.2",
13
13
  author="Vedha Sri",
14
14
  author_email="your.email@example.com",
15
15
  description="🔐 Prevent accidental credential commits to Git",
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes