Kicking off an import
Create the import-projects.json file
import-projects.json file{
targets: [
{..},
{..}
],
}{
// required
"orgId": "<public_snyk_org_id>",
"integrationId": <"public_snyk_integration_id>",
"target": {..} // the identifier of where the projects can be found (for example branch, repo name and owner for Github)
// optional
"files": [ { path: "full/path/to/file1"} , { path: "full/path/to/file2" }],
"exclusionGlobs": "fixtures, tests, __tests__, node_modules",
}Example: GitLab
Example: Bitbucket Server
Example: GitHub.com, GitHub Enterprise, dev.azure.com, Hosted Azure Repos
Example: Google Container Registry
Example: Azure Container Registry, Elastic Container Registry, Artifactory Container Registry
Set the environment variables
Download and run
Skip all previously imported targets
Example
Importing the same Target
Command to run
Supported integration types
PreviousMirroring Bitbucket Cloud organizations and repos in SnykNextContributing to snyk-api-import
Last updated
Was this helpful?

