$ show EISMGard/github-audit-tool
This is a single-file Python CLI tool that audits GitHub organizations by fetching repository lists, team structures, team memberships, direct collaborator rights, and deploy keys via the GitHub API. It uses PyGithub for API interaction, requests_cache for caching, and python-decouple for configuration. Output can be directed to stdout, CSV files, or both. The tool is straightforward and functional, with environment variable validation and a clean main function. However, it is monolithic with no modularization, no unit tests, and limited reusability. It serves a specific DevOps/security auditing use case and is actively maintained with CI workflows and semantic versioning.
The LLM identified 1 files worth highlighting for reuse:
The entire application is contained in this single script. While not reusable as a library, it demonstrates a clean pattern for wrapping the GitHub API with caching, environment-based configuration, and dual output modes. The use of pattern matching for environment variable validation and the structured data collection functions are well-organized for a script of this size.