SNYK_LOG_PATH
directory.import-projects.json
filetargets
top level key which is an array of import targets.orgId
- Can be found in https://app.snyk.io/org/YOUR_ORG/manage/settingsintegrationId
- Can be found in the Integrations menu for each SCM https://app.snyk.io/org/YOUR_ORG/manage/settingsexclusionGlobs
- Comma-separated list of up to ten folder names to exclude from scanning (each folder name must not exceed 100 characters). If not specified, defaults to "fixtures, tests, tests, node_modules". If an empty string is provided, no folders will be excluded.files
- An object array. Each path must be the full relative path to the file from the root of the target. Only those files will be imported if found at that location.files
property to accomplish this in the import JSON.exclusionGLobs
property:a comma-separated list of up to ten folder names to exclude from scanning. If not specified, it defaults to "fixtures, tests, tests, node_modules". If an empty string is provided, no folders will be excluded
SNYK_IMPORT_PATH
- the path to the import file or use --file
parameterSNYK_LOG_PATH
- the path to folder where all logs should be saved. Snyk recommends creating a dedicated logs folder for each import you have running. Note: all logs will be appended.CONCURRENT_IMPORTS
(optional) - defaults to 15 repos at a time, which is the recommended amount to import at once as a maximum. Just one repo may have many projects inside which can trigger many files at once to be requested from the user's SCM instance and some may have rate limiting in place. This script aims to help reduce the risk of hitting a rate limit.SNYK_API
(optional) defaults to https://snyk.io/api/v1
DEBUG=snyk* snyk-api-import-macos import --file=path/to/imported-targets.json
imported-targets.log
file by analyzing the projects already in a given Snyk Group. When present in the logging path, this file is used to look up targets that should be skipped during the import.snyk-api-import-macos list:imported --integrationType=<integration-type> --groupId=<snyk_group_id>
snyk-api-import-macos list:imported --integrationType=<integration-type> --orgId=<snyk_org_id>
snyk-api-import-macos list:imported --integrationType=<integration-type> --groupId=<snyk_group_id>
snyk-api-import-macos list:imported --integrationType=<integration-type> --integrationType=<integration-type> --orgId=<snyk_org_id>
github
github-enterprise
gitlab
bitbucket-cloud
gcr
docker-hub
azure-repos