Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.

Gain visibility by importing repositories

How to gain visibility by importing Projects so Snyk monitors your code, dependencies, containers, and infrastructure

Gaining visibility over your Organization security begins with importing Projects. This process allows Snyk to monitor your code, dependencies, containers, and infrastructure.

Complete Create your Snyk structure before you start this phase. You also need an Organization to import into and an account with the Add Project permission for that Organization, such as Org Admin or Org Collaborator.

There are several ways you can import Projects, depending on your tech stack and package managers:

  • SCM integration: Recommended for automatic scanning and developer workflows.

  • Snyk CLI: Recommended for granular control in CI/CD pipelines.

  • Snyk API: Recommended for large-scale, programmatic automation.

Import your first Projects video guide

Import Projects using an SCM integration

Use this method to connect repositories for automatic scanning. This is the preferred way for teams who prioritize ease of use.

To do this:

  1. In the Snyk web UI, select your Organization in the scope selector, then navigate to Settings > Integrations > All integrations.

  2. Connect to your SCM code repositories using the specific tile.

  3. Configure the integration settings:

    • Disable automatic fixes and PR/Merge checks during initial onboarding.

    • Enable these features after reaching a steady state.

  4. Select Projects in the side menu and click Add projects.

  5. Monitor results directly in your SCM repositories.

The import succeeds when each repository you selected appears as a Project in the Projects listing and Snyk reports its issues.

Snyk recommends importing each monorepo into its own separate Organization, rather than splitting it or importing it across multiple Organizations.

Import Projects using Snyk CLI

The Snyk CLI provides granular scanning. Teams typically implement it in build scripts before deployment.

  1. Install the CLI as part of your build script.

  2. Navigate to the Project directory.

  3. Run the scan command for your Project type:

    • Code: snyk code test --org=org-id

    • Open Source: snyk test --all-projects --org=org-id

  4. Review results locally or in the Snyk web UI.

The scan succeeds when the command returns its results in the terminal. If you also run snyk monitor, the Project appears in the Projects listing.

Import Projects using Snyk API

Use the API to trigger scans and handle results programmatically across a large portfolio.

  1. In the Snyk web UI, navigate to Settings > Organization settings > Service accounts and generate an API token.

  2. Call the Snyk API in your pipelines.

  3. Handle the results programmatically to trigger downstream actions.

The import succeeds when the Import targets call returns 201 with a URL to poll, and polling Get import job details returns success: true for each manifest processed.

Add Project tags and attributes

After importing Projects, use Project attributes and tags to categorize your data. This metadata lets you filter and report on specific subsets of your Organization.

For example, apply the frontend attribute and a Team:Unicorn tag to your Projects. You can then generate a report specifically for critical frontend vulnerabilities in production owned by Team Unicorn.

Attributes and tags also let you:

  • Group related Projects for easier management.

  • Customize how you view and access Project data.

Last updated

Was this helpful?