update
This commit is contained in:
@@ -4,10 +4,11 @@ This package contains the modular agent implementations for the
|
||||
enterprise AI code review system.
|
||||
"""
|
||||
|
||||
from agents.base_agent import BaseAgent, AgentContext, AgentResult
|
||||
from agents.base_agent import AgentContext, AgentResult, BaseAgent
|
||||
from agents.chat_agent import ChatAgent
|
||||
from agents.codebase_agent import CodebaseAgent
|
||||
from agents.issue_agent import IssueAgent
|
||||
from agents.pr_agent import PRAgent
|
||||
from agents.codebase_agent import CodebaseAgent
|
||||
|
||||
__all__ = [
|
||||
"BaseAgent",
|
||||
@@ -16,4 +17,5 @@ __all__ = [
|
||||
"IssueAgent",
|
||||
"PRAgent",
|
||||
"CodebaseAgent",
|
||||
"ChatAgent",
|
||||
]
|
||||
|
||||
@@ -15,7 +15,6 @@ from pathlib import Path
|
||||
|
||||
SECRET_PATTERNS = [
|
||||
{
|
||||
'name': 'OpenAI API Key',
|
||||
"name": "OpenAI API Key",
|
||||
"pattern": r"sk-[a-zA-Z0-9]{32,}",
|
||||
"severity": "HIGH",
|
||||
@@ -170,3 +169,4 @@ def main():
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
sys.exit(main())
|
||||
|
||||
@@ -15,7 +15,6 @@ import yaml
|
||||
|
||||
SECURITY_CHECKS = [
|
||||
{
|
||||
'name': 'Full webhook data in env vars',
|
||||
"name": "Full webhook data in env vars",
|
||||
"pattern": r"toJSON\(github\.event\)|toJSON\(gitea\.event\)",
|
||||
"severity": "HIGH",
|
||||
@@ -155,3 +154,4 @@ def main():
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
sys.exit(main())
|
||||
|
||||
19
tools/ai-review/utils/__init__.py
Normal file
19
tools/ai-review/utils/__init__.py
Normal file
@@ -0,0 +1,19 @@
|
||||
"""Utility Functions Package
|
||||
|
||||
This package contains utility functions for webhook sanitization,
|
||||
safe event dispatching, and other helper functions.
|
||||
"""
|
||||
|
||||
from utils.webhook_sanitizer import (
|
||||
extract_minimal_context,
|
||||
sanitize_webhook_data,
|
||||
validate_repository_format,
|
||||
validate_webhook_signature,
|
||||
)
|
||||
|
||||
__all__ = [
|
||||
"sanitize_webhook_data",
|
||||
"validate_repository_format",
|
||||
"extract_minimal_context",
|
||||
"validate_webhook_signature",
|
||||
]
|
||||
Reference in New Issue
Block a user