Mirroring GitHub.com and GitHub Enterprise organizations and repos in Snyk
You can use four commands in the available utils to import the entirety of GitHub and GitHub Enterprise repos into Snyk. You must configure both the GitHub token and Snyk token as environment variables to proceed.
General steps to import GitHub and GitHub Enterprise repos
Refer to individual documentation pages for detailed information. The general steps are as follows:
export GITHUB_TOKEN=***
andexport SNYK_TOKEN=***
Re-importing new repos and Orgs only while mirroring
Once initial import is complete you can periodically check for new repos and make sure they are added into Snyk by following these steps, which are similar to the preceding steps to import repos.
export GITHUB_TOKEN=***
andexport SNYK_TOKEN=***
Last updated