github-guardian 1.0.0__tar.gz → 1.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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: github-guardian
3
- Version: 1.0.0
3
+ Version: 1.0.2
4
4
  Summary: Deep Forensic Security Audit Engine & Pre-Commit Shield
5
5
  Author: GitHub Guardian Team
6
6
  Requires-Dist: typer>=0.9.0
@@ -7,9 +7,8 @@ HOOK_SCRIPT = """#!/usr/bin/env bash
7
7
 
8
8
  echo "🛡️ GitHub Guardian: Running Pre-Commit Shield Audit..."
9
9
 
10
- # We use the isolated virtual environment from the CLI directory
11
- CLI_DIR="$(git rev-parse --show-toplevel)/github-guardian-cli"
12
- $CLI_DIR/venv/bin/python $CLI_DIR/guardian.py scan-local . --hook
10
+ # Run the globally installed guardian command
11
+ guardian scan-local . --hook
13
12
 
14
13
  if [ $? -ne 0 ]; then
15
14
  echo "❌ COMMIT BLOCKED! Secrets or semantic vulnerabilities were detected in your staging area."
@@ -9,7 +9,8 @@ SECRET_PATTERNS = {
9
9
  "Slack Webhook": r'https://hooks\.slack\.com/services/T[0-9A-Z]{8}/B[0-9A-Z]{8}/[0-9a-zA-Z]{24}',
10
10
  "Stripe API Key": r'sk_live_[0-9a-zA-Z]{24}',
11
11
  "Private Key": r'-----BEGIN (?:RSA|OPENSSH) PRIVATE KEY-----',
12
- "Google API Key": r'AIza[0-9A-Za-z\-_]{35}'
12
+ "Google API Key": r'AIza[0-9A-Za-z\-_]{35}',
13
+ "OpenAI API Key": r'sk\s*-\s*[a-zA-Z0-9\-_]{40,}'
13
14
  }
14
15
 
15
16
  SAST_PATTERNS = {
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: github-guardian
3
- Version: 1.0.0
3
+ Version: 1.0.2
4
4
  Summary: Deep Forensic Security Audit Engine & Pre-Commit Shield
5
5
  Author: GitHub Guardian Team
6
6
  Requires-Dist: typer>=0.9.0
@@ -2,7 +2,7 @@ from setuptools import setup, find_packages
2
2
 
3
3
  setup(
4
4
  name="github-guardian",
5
- version="1.0.0",
5
+ version="1.0.2",
6
6
  description="Deep Forensic Security Audit Engine & Pre-Commit Shield",
7
7
  author="GitHub Guardian Team",
8
8
  packages=find_packages(),