GitHub - Examples
The list of options and some examples for GitHub
Available options:
Before running the command
Get your GitHub token or create a new one with this guide.
Note: Make sure your token has read access to the repos.
Running the command
Consider the following levels of usage and options:
Usage levels
To get commits for all repos in all my orgs in GitHub, provide the GitHub token:
To get commits for some Orgs and their repos in GitHub:, provide the GitHub token and the org names, separated by a comma:
To get commits for only one repo in GitHub, provide the GitHub token, one org name ,and one repo name:
Options
To exclude some contributors from being counted in the commits , add an exclusion file with the emails to ignore(separated by a new line) and apply the
--exclusionFilePath
with the path to that file:
To set the output to json format, dd the
--json
flag:To run in debug mode for verbose output, prefix with
DEBUG=snyk*
:
Last updated