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

The following git URL formats are supported:

  • git://
  • 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