Argus - 代码分析与安全评估工具
一款用于分析代码仓库、执行安全扫描和评估代码质量的多语言工具。
快速入门
安装
前置条件
- Python 3.8+
- Git
- libmagic(系统依赖)
macOS
安装 libmagic: brew install libmagic
Linux (Ubuntu/Debian)
安装 libmagic: sudo apt-get update sudo apt-get install -y libmagic1
使用 uv 安装
运行以下命令: uvx argus
使用方法
分析仓库结构
analyze_repository_structure(repo_url="https://gitlab.com/user/repo", branch="main")
执行代码质量分析
analyze_code_quality(repo_url="https://gitlab.com/user/repo", language="python")
执行安全扫描
security_scan_repository(repo_url="https://gitlab.com/user/repo", scan_type="trivy")
比较分支差异
compare_git_changes(repo_url="https://gitlab.com/user/repo", source="feature-branch", target="main")