Skip to content

Helps you to enumerate active committers in specified GitHub repositories.

License

Notifications You must be signed in to change notification settings

0xtiago/GithubCommittersSpy

Repository files navigation

Github Committers Spy

This script enumerates active committers in specified GitHub repositories over a given number of days. It fetches the data using the GitHub API and outputs the results to CSV files.

The objective behind this project was to facilitate the survey of the real number of users who collaborate in the Github repositories of important company projects, and thus be able to price SAST and SCA licenses with greater accuracy.

Special thanks to supporters and contributors

Features

  • Fetch active committers from specified GitHub repositories.
  • Retrieve commit data from the main branch within a specified number of days.
  • Output results to CSV files, including detailed commit counts per user.

Requirements

  • Python 3.x
  • requests library
  • pyyaml library
  • termcolor library
  • emoji library

Installation

  1. Clone the repository or download the script files.
  2. Install the required Python libraries:
    pip install -r requirements.txt

Configuration

  1. Create a config.yaml file with the following content and replace your_github_token with your GitHub personal access token:

    github_token: "your_github_token"
  2. Create a repositories.txt file and add the repositories you want to analyze, one per line, in the format owner/repo or https://github.com/owner/repo.

Usage

Run the script with the desired number of days to check for active committers using the -d flag:

python gh_committers_spy.py -d 90

Receiving the number of collaborators in default branch in the last 90 days.

alt text

Notes

  • Ensure you have a valid GitHub personal access token with appropriate permissions to access the repositories.
  • The script checks commits on the default branch of each repository.
  • If a repository URL is provided, it will be converted to the format owner/repo.

References

Support

☕ If this tool helped you, how about inviting me for a coffee?? 😄

"Buy Me A Coffee"

About

Helps you to enumerate active committers in specified GitHub repositories.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages