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 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:
In the Snyk web UI, select your Organization in the scope selector, then navigate to Settings > Integrations > All integrations.
Connect to your SCM code repositories using the specific tile.
Configure the integration settings:
Disable automatic fixes and PR/Merge checks during initial onboarding.
Enable these features after reaching a steady state.
Select Projects in the side menu and click Add projects.
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.
Import Projects using Snyk CLI
The Snyk CLI provides granular scanning. Teams typically implement it in build scripts before deployment.
Install the CLI as part of your build script.
Navigate to the Project directory.
Run the scan command for your Project type:
Code:
snyk code test --org=org-idOpen Source:
snyk test --all-projects --org=org-id
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.
In the Snyk web UI, navigate to Settings > Organization settings > Service accounts and generate an API token.
Call the Snyk API in your pipelines.
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?

