snyk-api-import, is a script intended to help import projects into Snyk using available Snyk APIs at a controlled pace to avoid rate limiting from GitHub, GitLab, Bitbucket, and other systems and to provide a stable import. The script kicks off import in batches, waits for completion, and then keeps going. Any failed requests are retried before they are considered a failure and logged.
snyk-api-importyou must do the following in advance:
integrationIdto generate the import files.
snyk-api-importCLI can be installed through multiple channels.
importcommand will run if no command is specified.
import- kick off a an API powered import of repos (targets) into existing Snyk Orgs defined in the import configuration file. All support available for all project types is provided through the Import API (Import Projects, Import).
help- show help and all available commands and their options.
orgs:datautil - use to generate data required to create Orgs using the API.
orgs:createutil - use to create the Orgs in Snyk based on the data file generated with
import:datautil - use to generate data required to kick off an import. Note that archived repos are excluded by default.
list:importedutil - use to generate data to help skip previously imported targets during import.
Error: ENFILE: file table overflow, openor
Error: EMFILE, too many open files
ERROR: HttpError: request to https://github.private.com failed, reason: self signed certificate in certificate chain