snyk-scm-contributors-count
What does this tool do?
This tool counts and prints a summary of the contributors count for the last 90 days for any of the following SCMs:
Azure Devops
Bitbucket Cloud
Bitbucket Server
GitHub
GitHub Enterprise
GitLab
GitLab Server
Prerequisites
Complete the following prerequisites before running the script:
Export the Snyk API token. You can find the token in the Snyk Web UI under the account Settings.
Ensure the SCM Personal Access Token (PAT) has Code/Read permissions. Snyk recommends full access.
Verify you have access to all in-scope SCM Organizations and Projects.
Use
npxfor one-off executions to avoid installing the script globally.
For more information, see the tool repository README.
How the SCM-Contributors-Count tool works
The tool works in two modes: Scoping usage prior to onboarding and Snyk License Consumption.
Scoping usage prior to onboarding: For users who want to onboard to Snyk and would like to get an estimate of the developer count across their SCMs. In this mode, the tool fetches all the information directly from the SCMs, using the credentials provided by the user.
Snyk License Consumption (valid only for Bitbucket and Azure): For users with an existing Snyk account, who want some clarity and details about their license consumption (number of contributors, names, email, and so on). In this mode, the tool fetches the SCM-related projects monitored by Snyk and then matches those to the repos on the SCM and counts the contributors only for those repos/projects.
Downloading the tool
Run the following:
You can also get the binaries from the release page.
Last updated
Was this helpful?

