How can I test a GitHub repository using the Snyk CLI?

To test a public Github repository, run snyk test and include the Github URL to the repo.

snyk test https://github.com/snyk/snyk

The following git URL formats are supported:

  • git://github.com/user/project.git#commit-ish
  • https://github.com/user/project#commit-ish
  • user/project#commit-ish

This also works for Bitbucket and GitLab. You can also test a public npm package, or public Node.js or Ruby Github project via the Test page on snyk.io.