{"id":23936726,"url":"https://github.com/johnforfar/git-scanner","last_synced_at":"2025-11-17T11:03:50.353Z","repository":{"id":269291454,"uuid":"906965481","full_name":"johnforfar/git-scanner","owner":"johnforfar","description":null,"archived":false,"fork":false,"pushed_at":"2024-12-22T13:20:59.000Z","size":5,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-06T01:16:05.526Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/johnforfar.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-12-22T12:48:06.000Z","updated_at":"2024-12-22T13:21:03.000Z","dependencies_parsed_at":"2024-12-22T14:23:09.446Z","dependency_job_id":"ed6d522d-1cce-4551-a073-fe3cd62d069d","html_url":"https://github.com/johnforfar/git-scanner","commit_stats":null,"previous_names":["johnforfar/git-scanner"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/johnforfar%2Fgit-scanner","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/johnforfar%2Fgit-scanner/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/johnforfar%2Fgit-scanner/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/johnforfar%2Fgit-scanner/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/johnforfar","download_url":"https://codeload.github.com/johnforfar/git-scanner/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240409428,"owners_count":19796791,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-01-06T01:16:08.037Z","updated_at":"2025-11-17T11:03:45.334Z","avatar_url":"https://github.com/johnforfar.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Git Scanner\n\nA security analysis tool that automates GitLeaks scanning across multiple GitHub repositories.\n\n## Features\n\n- Bulk repository scanning\n- Smart repository handling (skips existing repos)\n- Automatic repository cloning and cleanup\n- JSON formatted scan results\n- Progress tracking and error handling\n- Cross-platform compatibility (macOS, Linux)\n- Working directory safety checks\n\n## Requirements\n\nTo use this tool, you need:\n\n- Git\n- GitLeaks\n- curl\n- jq (JSON processor)\n\nFor macOS, install using Homebrew:\n\n    brew install gitleaks jq\n\n## Installation\n\nClone the repository:\n\n    git clone https://github.com/yourusername/git-scanner.git\n    cd git-scanner\n    chmod +x scan_repos.sh\n\n## Usage\n\nScan all repositories for a user or organization:\n\n    ./git-scanner.sh \u003cgithub-user-or-org\u003e\n\nThe script accepts both usernames and full GitHub URLs:\n\n    ./git-scanner.sh microsoft\n    ./git-scanner.sh https://github.com/microsoft/\n\nBefore scanning, the script will:\n1. Show your current working directory\n2. Ask for confirmation before proceeding\n3. Check for existing repositories\n\nNote: The script will NOT delete existing repositories in your working directory.\n\n## Output Structure\n\nResults are saved in the results directory with the following structure:\n\n    results/\n    ├── repo1/\n    │   └── scan_results.json\n    ├── repo2/\n    │   └── scan_results.json\n    └── repo3/\n        └── scan_results.json\n\n## Scan Results\n\nEach scan produces a JSON file containing:\n- Repository metadata\n- Detected secrets or sensitive data\n- Scan timestamp\n- File locations and line numbers\n\n## Error Handling\n\nThe script handles:\n- Missing dependencies\n- Failed repository clones\n- API rate limiting\n- Invalid usernames/organizations\n- Network connectivity issues\n- Existing repository detection\n- Working directory verification\n- Organization vs user repository detection\n\n## Security Notes\n\n- Results may contain sensitive data - handle with care\n- Default scan uses public API access\n- Consider rate limiting for large organizations\n- Clean up results after analysis\n- Follow responsible disclosure practices\n\n## Contributing\n\n1. Fork the repository\n2. Create your feature branch\n3. Commit your changes\n4. Push to the branch\n5. Open a Pull Request\n\n## License\n\nMIT License\n\n## Author\n\n@johnforfar\n\n## Acknowledgments\n\n- GitLeaks Project\n- GitHub API Documentation\n\n## Future Improvements\n\n- GitHub token support\n- Custom GitLeaks rules\n- Parallel scanning\n- HTML report generation\n- Slack/Discord notifications\n- Repository filtering options\n- Dry-run mode\n- Force re-clone option\n- Custom working directory support\n- Enhanced logging options","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjohnforfar%2Fgit-scanner","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjohnforfar%2Fgit-scanner","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjohnforfar%2Fgit-scanner/lists"}